What operational visibility do Event Monitoring log files provide to security teams auditing integration activity?
Answer
Basics: Standard auditing, such as Setup Audit Trail or Field History, shows what changed. Event Monitoring shows how the org was used. It is licensed as part of Salesforce Shield or as a separate Event Monitoring add-on, and a small set of login and logout log files is available free (verify the current free allowance).
How it works: There are two delivery models.
- Event Log Files (ELF): a daily file, and an hourly file for many event types, exposed through the
EventLogFileobject. You query it with SOQL or REST, then download the CSV from theLogFilefield. Typical event types areAPI,Login,Logout,ReportExport,RestApi,BulkApiandApexExecution. Files are retained for 30 days. - Real-time Event Monitoring: streaming events (
LoginEventStream,ApiEventStream,ReportEventStream,ListViewEventStream) published on the event bus, plus storable events (LoginEvent,ReportEvent) kept in big objects.
For integrations, log fields identify the user, client IP, connected app, API version, rows processed and run time. That lets you spot an integration user that suddenly pulls a million rows or logs in from a new IP.
Advanced / deep dive: Transaction Security Policies act on real-time events. A policy can block or require MFA when, for example, a report export exceeds a row count. Event Monitoring Analytics (a CRM Analytics app) gives ready-made dashboards. For long-term retention and correlation, ship the data to a SIEM (see the SIEM entry). Log data is metadata about activity, not record contents, so it supports attribution and forensics but does not recover deleted or changed data.