Newer Version Available
Using Event Monitoring
The examples in this section use REST APIevent monitoring data that
contains information useful for assessing organizational usage trends and user behavior.
Because event monitoring is accessed
through the Force.com
SOAP API and REST API by way of the EventLogFile object, you can integrate log data with your own back-end storage and data marts so that
you can correlate data from multiple orgs and across disparate systems
easily.
When using event monitoring, keep the
following in mind.
- In the unlikely case where no log files are generated for 24 hours, contact Salesforce.
- Log data is read-only. You can’t insert, update, or delete log data.
- Use the EventType field to determine which files were generated for your org.
- LogDate tracks usage activity for a 24-hour period, from 12:00 a.m. to 11:59 p.m. UTC time.
- An event generates log data in real time. However, log files are generated the day after an event takes place, during nonpeak hours. Therefore, log file data is unavailable for at least one day after an event.
- CreatedDate tracks when the log file was generated.
- Log files, represented by the EventType field, are generated only if there is at least one event of that type for the day. If no events took place, the file isn’t generated for that day
- Log files are available based on CreatedDate for the last 30 days when orgs purchase User Event Monitoring or one day for Developer Edition orgs.
- All event monitoring logs are exposed to the API through the EventLogFile object, however there is no access through the user interface.
Event monitoring can be used with
the following event types:
- Apex Callout
- Apex Execution
- Apex SOAP
- Apex Trigger
- API
- Async Report
- Bulk API
- Change Set Operation
- Content Distribution
- Content Document Link
- Content Transfer
- Dashboard
- Document Attachment Downloads
- Login
- Login As
- Logout
- MDAPI Operation
- Multiblock Report
- Package Install
- Queued Execution
- Report
- Report Export
- REST API
- Salesforce1 Adoption (UI Tracking)
- Sandbox
- Sites
- Time-Based Workflow
- Transaction Security
- UI Tracking
- URI
- Visualforce Request
- Wave Change
- Wave Interaction
- Wave Performance
All queries and examples in this section require the “View Event Log Files” and “API Enabled” user permissions. Users with the “View All Data” permission can also view event monitoring data.