Metadata monitoring tracks how a Salesforce org's configuration changes over time and alerts the right people when something important changes. Monitoring catches unauthorized or accidental changes, builds the change history auditors ask for, and provides earlier states to restore from. Salesforce records setup changes for a limited period, so long-term monitoring depends on capturing the org's metadata on a regular schedule.
What to Monitor
- Configuration changes between scheduled captures, such as new fields, changed automation, and permission edits.
- Security settings that move away from recommended values.
- Code health, such as falling test coverage or new high-priority quality findings.
- Capacity, such as limits approaching exhaustion.
- Cleanup signals, such as newly unused fields and inactive users who remain connected.
How to Approach Monitoring
- Schedule captures of the org's metadata nightly, weekly, or monthly, depending on how often the org changes.
- Compare each capture with the previous one and keep the history.
- Alert on conditions, not on every run. Send reports only when differences, high risks, or low coverage appear, so alerts stay meaningful.
- Route alerts to owners through email or team channels.
- Run unattended on a machine that stays on, and review the execution log for failed runs.
How Snapshot Helps
- Manage Time Series: manages the saved metadata history of one org. Compare Time Series reports identical, similar, different, and missing assets between saved states, and Schedule Report can run after new snapshots, optionally only when different assets are reported.
- Metadata Differences Report: compares snapshots between orgs or over time, with conditional alerts when missing or different assets appear.
- Security Health Check Report: scheduled alerts when medium or high security risks appear.
- Event Schedule and Event Log: run scheduled snapshots and reports in Runtime mode and record when each event ran and whether the event succeeded or halted.
Saved snapshots describe the org at capture time, not a live view, and a missing asset between two captures does not prove deletion when the capture scopes differ.
Common Questions
How long does Salesforce keep a record of setup changes?
Setup Audit Trail keeps 180 days of setup changes. Regular metadata snapshots provide a longer and more detailed history.
How do I get alerted when someone changes production?
Capture production on a schedule, compare each capture with the previous one, and send a report only when differences are found.
How often should metadata be captured?
Daily for orgs with frequent changes or strict compliance needs, and weekly or monthly for stable orgs.