Resources /
Blog

Audit Logging Tools for Salesforce: Which Tool Tracks Which Change

Submit your details to get a book

7
Min Read
Resources /
Blog

Audit Logging Tools for Salesforce: Which Tool Tracks Which Change

Download

Submit your details to get a book

7
Min Read
Audit document with a check badge linked to clock and list tiles, illustrating Salesforce audit logging tools
Audit document with a check badge linked to clock and list tiles, illustrating Salesforce audit logging tools

Salesforce has no single audit log. Configuration changes, record edits, logins and deployments all land in different tools, and each tool keeps history for a different length of time.

Choosing an audit logging tool for Salesforce usually falls to an admin, a release manager or a compliance lead. We map each kind of change to the tool that records it, then show how to combine them for auditors.

Which Salesforce tool records which kind of change?

Below, each kind of change is matched to its tool and to how long Salesforce keeps the record. For a closer look at the first three tools, plus retention rules by regulation, see our audit trail guide.

Kind of changeTool that records itHow long Salesforce keeps itWhat you need
Setup changes such as users, permissions and objectsSetup Audit Trail180 days by downloadIncluded
Edits to field values on recordsField History Tracking, up to 20 fields per objectUp to 18 months, 24 via the APIIncluded
Long-term field historyField Audit Trail, up to 200 fields per objectUntil you delete itShield, or its own add-on license
Logins, API calls and report exportsEvent MonitoringOne day for free log files, up to a year with a paid licensePaid license; a few log types are free
Metadata API deploys and retrievesEvent Monitoring, Metadata API Operation event typeUp to a year with a paid licenseEvent Monitoring license
The diff, approval and ticket behind a releaseVersion control in a release toolAs long as you keep the repositoryRelease tool

What does Setup Audit Trail track?

Setup Audit Trail tracks changes in Setup, who made them and when, and the Setup page shows the last 20. A CSV download reaches back 180 days, after which Salesforce deletes the records, so schedule downloads well inside that window.

Setup Audit Trail will show you that a permission set changed, but not the ticket, approver or code review behind it. As our Event Monitoring guide notes, it doesn't link changes to their pipeline.

What do Field History Tracking and Field Audit Trail track?

Field History Tracking captures the old value, new value, user and time whenever a tracked field changes. You pick up to 20 fields per object, per our Field Audit Trail guide.

Salesforce Help says standard field history is kept up to 18 months in the org, 24 through the API, or, with Field Audit Trail on, until you delete it. Field Audit Trail comes with Salesforce Shield or as its own add-on license, and tracks up to 200 fields per object.

Field history is the tool for record data: amounts, stages, owners, consent flags. Setup changes and deployments aren't in it, so it can't stand in for the other tools.

What does Event Monitoring add?

Event Monitoring is about activity, not configuration. The Shield page says it "tracks 80+ event types including logins, API calls, report exports, and agent actions."

It also captures deployments. The Metadata API Operation event type records Metadata API deploy and retrieve requests, but not who approved the release.

Unless you pay, retention is short. Salesforce's Event Monitoring module gives free event log files one day and a paid license up to a year.

You can view the logs in Setup's Event Log File Browser or query the EventLogFile object through the API. Our Event Monitoring guide covers the permissions to assign first.

Shield adds real-time monitoring too. The Shield page lists "real-time threat detection and Transaction Security Policies" as part of Event Monitoring.

Where does version control in a release tool fit?

Salesforce's own tools tell you what changed and who did it. Version control in a release tool fills in the rest: the diff, the work item and the approval behind each change.

Change sets don't give you that. Our change set limits post notes they keep no version history or rollback, and their logs don't show who requested or approved a change.

Lifecycle Center (formerly DevOps Center) is free, and our comparison with change sets lists what it adds: Git-based source control, work items and a visual pipeline. There's no rollback, though.

With a full release tool, every change goes through the same CI/CD pipeline and the approvals stay on record. For the setup, see our guides to Salesforce version control and DevSecOps checks.

How do you choose and combine Salesforce audit tools?

Work backward from the questions your auditors and security team ask, and pick the tool that answers each one. The table pairs common questions with the tools to combine.

QuestionTools to combineWhat to keep
Who changed this permission set, and when?Setup Audit Trail, plus release history if the change was deployedSetup Audit Trail CSVs saved every few months
What was this Opportunity amount before the edit?Field History Tracking, or Field Audit Trail for older historyHistory for the fields you'd have to explain
Who exported this customer report?Event MonitoringEvent log files exported before they expire
Was this release approved and tested?Version control and approvals in the release toolRelease records with approver, date and diff
Did anyone deploy outside the pipeline?Metadata API Operation events checked against release recordsBoth logs for the same period

That last row only works with both sources side by side. If Event Monitoring shows a deploy with no matching release record, that change went around your release process.

What if you don't have Shield?

Begin with what's included: Setup Audit Trail and Field History Tracking. Enterprise, Unlimited and Performance orgs also get free log types such as Login, Logout and API Total Usage, with one-day retention.

You'll still have gaps in long-term field history and in activity logs older than a day. Export on a schedule, and deploy through a release tool so your release evidence doesn't hinge on Shield.

Keep the logs safe and long enough for compliance

Keep exported logs somewhere the people in them can't edit them. NIST's AU-9 control says to "Protect audit information and audit logging tools from unauthorized access, modification, and deletion".

Set each log's retention on purpose. NIST's AU-11 asks you to retain audit records "to provide support for after-the-fact investigations of incidents and to meet regulatory and organizational information retention requirements."

Name a retention period for each log type in your data retention policy. For what SOX, HIPAA and GDPR say about those periods, see our audit trail guide.

Check who can change the auditing setup, too. Our permission sets guide covers tracing permission set changes with the audit trail.

Where does Flosum fit?

For the Flosum DevOps Cloud App, the Flosum DevOps page lists metadata-aware version control, approval workflows, segregation of duties and audit trails. According to that page, the evidence is "generated automatically in the release pipeline."

The same page says Flosum keeps history beyond Salesforce's 180-day Setup Audit Trail. Its risk and governance page says it tracks "configuration drift, unauthorized changes, and deployment activity with full traceability."

Flosum DevOps runs in Flosum's cloud or in your own cloud. Field history and Event Monitoring still cover record edits and logins, which release tools don't.

For enterprise teams preparing for an audit, our DevOps compliance guide walks through gathering release evidence. We go deeper on the native tools' limits in our audit trail guide.

FAQs

What is the best Salesforce audit logging tool?

No single tool covers every change. Setup Audit Trail covers setup, field history covers record edits, Event Monitoring covers activity and deploys, and a release tool covers approvals.

How do you track changes in Salesforce?

Turn on history for the fields that matter and download Setup Audit Trail before its 180-day window closes. Then deploy through a release tool with version control, so every change comes with an approver and a diff.

Does Event Monitoring log deployments?

Yes. The Metadata API Operation event type records Metadata API deploy and retrieve requests, but not who approved them.

How long does Field Audit Trail keep history?

Until you delete it, across up to 200 fields per object. Standard field history keeps up to 18 months in the org.

Does Setup Audit Trail show who approved a change?

No. You get the change, the user and the time, so approval evidence has to come from your release process.

Is Field Audit Trail included with Salesforce?

No. It's sold with Salesforce Shield, a paid add-on that also includes Event Monitoring and Platform Encryption, or as its own add-on license.

Book a demo to see how Flosum DevOps records approvals, deployments and change history alongside your Salesforce audit logs.

Table Of Contents
Author
Stay Up-to-Date
Get flosum.com news in your inbox.

Thank you for subscribing

Ship Salesforce changes faster
Teams on Flosum report 40% higher development velocity and 75%
fewer merge conflicts.
Free to start  |  No credit card required