Event Monitoring Is a Fire Hose, So Point It Somewhere
このコンテンツはまだ日本語訳がありません。
Module 1 of 6 in the chapter Monitoring: Real-Time Events, Log Files and Transaction Security, chapter 19 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.
The question this module answers: You’ve turned on event monitoring, or you’re about to. Where do the logs go, how far behind are they, and who reads them?
Everything in this course up to now has been about deciding who can see what. This chapter is about proving it: who actually looked, who exported, who changed what. Think of it as the cameras in the building. A camera is only useful if it records somewhere and someone watches the tape.
A fire hose of data
Section titled “A fire hose of data”Here’s the question I ask the room: has anybody heard of event monitoring? What do you think it does?
There are a lot of things happening in Salesforce at any moment. Somebody logs in. Somebody opens a page. A Lightning component loads, an Apex class runs, an integration calls the API, someone runs a report and exports it. Each of those is an event, and event monitoring lets you tap into them. When you turn it on, you get access to a fire hose of data.
Salesforce describes what you get in its own words: insight into “Who viewed what data and when,” “Where data was accessed,” “Who is logging in and from where,” and “Which admins logged in as another user and the actions the admin took as that user,” among others (Event Monitoring (opens in a new tab), Salesforce Help, checked 2026-11-26).
That’s the promise. The catch is in what comes next.
What every org gets, and what the add-on adds
Section titled “What every org gets, and what the add-on adds”Some of this is in every org, and most of it isn’t. So let’s be exact, with a date.
In every supported edition, at no additional cost: a short list of event log file types. In Salesforce’s words, “The Apex Unexpected Exception, API Total Usage, CORS Violation Record, CSP Violation, Hostname Redirects, Insecure External Assets, Login, and Logout events are available in supported Salesforce editions at no additional cost” (EventLogFile Supported Event Types (opens in a new tab), Object Reference for the Salesforce Platform, checked 2026-11-26). They’re kept for one day, and since Summer ‘23 you have to opt in: turn on Generate Event Log Files in Event Monitoring Settings (Salesforce Event Monitoring Frequently Asked Questions (opens in a new tab), knowledge article, published 2026-01-05, checked 2026-11-26).
With Shield or the Event Monitoring add-on: the rest. The quick start says the setting “Generates over 70 different ELF types,” and it’s on by default for those customers (Quick Start: Event Monitoring (opens in a new tab), Salesforce Help, checked 2026-11-26). The add-on also brings real-time events (module 2), Threat Detection (module 2) and transaction security policies (module 3). Salesforce’s pages put it plainly: “Requires Salesforce Shield or Salesforce Event Monitoring add-on subscriptions” (same page). I won’t quote a price; that’s between you and your account team.
In a Developer Edition org: every event type, kept for one day (FAQ). That’s enough to learn what the files look like. It’s not enough to audit anything.
How long the add-on keeps them is where Salesforce’s pages read differently, so here’s the range, dated 2026-11-22. The FAQ says logs “are retained for 30 days by default and can be extended up to 1 year (365 days),” with Retain Event Logs in Event Monitoring Settings, or a custom number of days through the Metadata API. The developer guide says log files “are retained, by default, for 1 year after their CreatedDate” (Using Event Monitoring (opens in a new tab), REST API Developer Guide, checked 2026-11-26). Either way, a year is the most Salesforce keeps. Check the setting in your own org, because the number that matters is the one you can show an auditor.
Two more facts worth knowing. Log files “don’t count towards your org’s data or file storage allocations” (developer guide). And the paid logs “cannot be retrieved retroactively for periods before the contract start date” (FAQ). You can’t buy it after the incident and look back at the incident.
Not real time: hours to a day behind
Section titled “Not real time: hours to a day behind”I warn every class about this, and Salesforce says it too: these logs are delayed.
“An event generates log data in real time. However, daily log files are generated during nonpeak hours the day after an event takes place. Therefore, daily log file data is unavailable for at least 1 day after an event.” Hourly files are faster: “expect an event to take place 3–6 hours from the time of the event to be available in the log file. However, it can take longer.” And the hourly files can miss things during a site switch or an outage, so “For complete data, use the daily log files” (developer guide).
Then there’s a sentence every architect should read twice: “Event Monitoring log files aren’t a system of record for user activity. They’re a source of truth, but they aren’t durable.” When Salesforce moves an org’s instance, “your event log files can have a gap in data” (same page). So if a regulation says you must keep a record of activity, the log files feeding it are an input to that record, not the record itself. The record lives where you send them.
If you need to see something as it happens, that’s a different tool: real-time events, in module 2.
Two ways to read them
Section titled “Two ways to read them”There are two shapes to the same kind of data.
- Event Log Files are CSV files, one per event type per hour or per day, pulled through the API from the
EventLogFileobject, or downloaded from the Event Log File Browser in Setup (FAQ). - Event Log Objects hold “many but not all” of the same events in standard objects you can query with SOQL. “Unlike Event Log Files, which surface event data as CSV files, Event Log Objects allow querying of similar data via SOQL” (Event Monitoring (opens in a new tab)).
Access is a permission like any other. The Event Monitoring User permission set “gives you access to event log files (ELFs), event log objects (ELOs), real-time events, and the Threat Detection app” (quick start). Treat it the way you’d treat View All Data: these logs show what people looked at, so who can read the logs is a sharing decision too.
Point it somewhere
Section titled “Point it somewhere”Now the part I care about most. When you turn on event monitoring, Salesforce writes the events down and keeps them for a while. It doesn’t watch them for you. So you’ve got to point that fire hose somewhere you can catch the data, keep it, and look at it.
There are two common places, and Salesforce names both kinds. You can “import logs into data visualization or application monitoring tools like CRM Analytics, Splunk, or New Relic” (Event Monitoring (opens in a new tab)).
- The lighter option, inside Salesforce: CRM Analytics, with Salesforce’s Event Monitoring Analytics app and dashboards built on the log data.
- The industrial-grade option, outside Salesforce: a security information and event management tool, a SIEM, the system a security team already uses to watch everything else. “Most security information and event management (SIEM) and observability solutions can import Event Monitoring data through our APIs” (quick start). In my experience, the biggest enterprise clients send their logs to their SIEM, next to the logs from every other system they run, because that’s where the security team already looks.
Whichever you choose, the same questions come with it:
- How long do we keep it? Salesforce keeps a year at most. If your policy says seven years, the destination keeps it, not Salesforce.
- Who can see it? The logs are full of who did what, which makes them personal data. Salesforce lets you delete event log files, “which is sometimes required to meet regulatory and privacy requirements such as GDPR” (quick start), but only whole files, never single rows (developer guide).
- Who reads it, and how often? A dashboard nobody opens is a camera with no one watching.
- Have we tested it? Not “is it turned on,” but “can we answer a real question with it today?”
Even if you never build this yourself, use the right words with your customer. Do you have event monitoring on? Where are the logs going? Who reads them?
The flood nobody could trace
Section titled “The flood nobody could trace”Here’s why I ask. A client of mine bought event monitoring and thought the job was done. About a week later, they were attacked through their web-to-case form.
What kind of authentication does web-to-case have? None. Anyone on the internet can submit it, which is the point of it. Somehow the form’s protection against bots stopped working, and someone started sending about ten thousand junk cases an hour. Ten thousand cases an hour, every one going through case assignment rules and sending notifications. It brought their support operation to a stop.
So they said: we bought event monitoring, so tell us which IP addresses this is coming from, and we’ll block them. But they had never pointed the logs anywhere. No destination, no dashboard, no one reading. So where were the log messages going? Nowhere. They had the cameras and no tape.
That’s the lesson. If you’re getting event monitoring, ask where the logs will go and how, and do a test run before you need it: pick a real question, such as “who logged in from outside the country last week?”, and answer it from the destination, end to end. And protect the doors that don’t need a login, like web-to-case, before someone finds them for you.
Test knowledge. Know what event monitoring records and that most of it needs Shield or the Event Monitoring add-on; which event log file types every org gets at no additional cost (Login, Logout, API Total Usage and a few others), kept one day, with Generate Event Log Files turned on. Know that event log files are delayed (daily files the next day, hourly files hours later), are CSV files read through the API or the Event Log File Browser, and that Event Log Objects hold many of the same events for SOQL. Know that Salesforce keeps them for a year at most, that they don’t count against storage, that they aren’t a system of record, and that they need a destination (CRM Analytics or a security tool) and someone to read them. A likely area, not a known question.
What an architect decides here
Section titled “What an architect decides here”- Whether the project needs event monitoring beyond the free event types, and which questions it has to answer: who viewed, who exported, who logged in, what changed.
- Where the logs go: CRM Analytics, the security team’s SIEM, or both, and how they get there.
- How long they’re kept, by Salesforce and by the destination, measured against the policy or regulation, and how a deletion request is handled.
- Who can read the logs, and who must read them, how often, with what alerts.
- The test run: one real question, answered end to end, before go-live, and again after any change.
Beyond the exam: what AI changes. Agents act in your org too. Ask the same two questions about an agent as about a person: what gets written down when it acts, and who reads it? Chapter 20 covers agents.
Explore
Section titled “Explore”- Event Monitoring (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Quick Start: Event Monitoring (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Salesforce Event Monitoring Frequently Asked Questions (opens in a new tab), Salesforce knowledge article (checked 2026-11-26)
- Using Event Monitoring (opens in a new tab), REST API Developer Guide (checked 2026-11-26)
- EventLogFile Supported Event Types (opens in a new tab), Object Reference for the Salesforce Platform (checked 2026-11-26)
- For logins and the door: Who Did What: Audit During and After Login, Securing Salesforce: Identity and Access
