You need to sign in to do that
Don't have an account?
Event Monitoring - Query Event Log Files - REST Explorer error
In the Query Event Log Files section of the Event Monitoring module I am wondering why I can't view the events in the REST Explorer (ie the input code turned up an error saying:
service not found at: /services/data/v+<API+version>+.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'.
Is this perhaps because I don't have the correct permissions in my dev account to query event log files (event monitoring requires the “API Enabled” and “View Event Log File” permissions).
If this is the case, how do I access those permissions?
Thanks!
service not found at: /services/data/v+<API+version>+.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'.
Is this perhaps because I don't have the correct permissions in my dev account to query event log files (event monitoring requires the “API Enabled” and “View Event Log File” permissions).
If this is the case, how do I access those permissions?
Thanks!
In the query, you need to replace +<API+version>+ with the API version you're using. For example:
/services/data/v34.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'
Does that help?
All Answers
In the query, you need to replace +<API+version>+ with the API version you're using. For example:
/services/data/v34.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'
Does that help?