Monitoring and audit: Setup Audit Trail, field history, Event Monitoring and Transaction Security
What to log and how to respond: Setup Audit Trail, field history and Field Audit Trail, login history, Event Monitoring and Real-Time Event Monitoring, Transaction Security policies, Health Check and Security Center.
Simple explanation
| Tool | What it records | Notes |
|---|---|---|
| Setup Audit Trail | Configuration changes by admins | Recent changes viewable in Setup; download for longer history |
| Field history tracking | Old and new values for chosen fields | 20 fields per object as standard; 18 months in the UI, 24 via API |
| Field Audit Trail (Shield) | Field history at scale | Up to 200 fields per object, retention until deleted by policy |
| Login history | Logins, method, IP, success or failure | Six months in Setup |
| Event Monitoring (Shield / add-on) | Event log files: logins, API calls, report exports, page views, Apex execution | Daily or hourly files for SIEM and analytics |
| Real-Time Event Monitoring | Streaming events (login, API, report, list view) | Feeds Transaction Security |
| Transaction Security policies | Rules on real-time events | Block, require MFA, or notify (for example large report exports) |
| Health Check / Security Center | Configuration baseline and posture | Score against a baseline; Security Center across orgs |
Design principle: decide what you must be able to prove (who changed or exported what), what you must detect (anomalies), and how you'll respond (automated policies, SIEM alerts, runbooks).
Real-world analogy
Setup Audit Trail is the building's maintenance log, field history is the change log on each filing cabinet, Event Monitoring is the CCTV recording, and Transaction Security is the guard who stops someone carrying 10,000 files out of the door.
Worked example
A bank's monitoring design:
- Field Audit Trail on customer risk rating, address and bank details, retained 10 years.
- Event Monitoring log files streamed to the SIEM; alerts on logins from new countries and API volume spikes per integration user.
- Transaction Security: block report exports over 5,000 rows containing customer data unless the user has the Approved Exporter permission; require MFA for list view exports.
- Monthly Health Check review; Setup Audit Trail exported weekly to long-term storage.
Diagram
Key points
- Prove, detect, respond: design monitoring around those three needs.
- Setup Audit Trail for config; field history / Field Audit Trail for data changes.
- Event Monitoring log files to a SIEM; real-time events for immediate action.
- Transaction Security blocks or challenges risky actions.
- Health Check and Security Center for posture.
- Know the retention of each source and archive what regulation requires.
Limits and gotchas
- Standard field history is limited in fields and retention; regulated retention needs Field Audit Trail or export.
- Event Monitoring and Field Audit Trail are paid capabilities (Shield or add-ons) β verify packaging.
- Logs nobody reviews don't help; agree owners and alert thresholds.
- Transaction Security policies that block too aggressively disrupt work; start in notify mode and tune.
π€ How to say this in an interview
Answer audit questions with the right tool per question ("who changed this field?", "who exported this report?", "who changed this setting?") and add response: policies and SIEM alerts.
Common follow-ups
How would you detect a departing employee exporting customer data?
Event Monitoring report export and API events to the SIEM with alerts on unusual volume, and a Transaction Security policy that blocks or requires approval for large exports.
Field history or Field Audit Trail?
Field history for ordinary needs (up to 20 fields, 18β24 months). Field Audit Trail when regulation requires longer retention or more fields per object.