Event log retention and access for Salesforce teams comes down to three decisions: how long each type of log is kept, who may read it, and what must happen before a log leaves the org for an investigation. Write these decisions down before an incident and assign an owner to each one.
Start by mapping each log to the question it answers
Before you choose any retention period, list the log sources your org produces and the question each one helps answer. A login record helps answer who got into the system and from where. A record of report exports helps answer what data left the system. A record of API activity helps answer which integration user touched a set of records. Logs that answer no real question are the first candidates for a shorter window, while logs tied to security reviews, customer disputes or regulatory obligations usually need a longer one.
Ask the owner of each question how far back they might need to look. A security analyst reviewing a suspicious login may need weeks of history, while a support lead checking one failed save usually needs far less. Write the answers down, because they become the basis for the retention period and for the list of people who can request an extract.
Record the business reason for each log type
For each log type, record the reason it is kept, the team that owns it, and the roles expected to ask for it. A short register keeps retention decisions from drifting when staff change roles. Use one row per log type with these fields:
- The log name and what it records
- The business question it answers
- The owning team and a named contact
- The retention period agreed with that owner
- The roles that may request an extract, and how they ask
Set retention periods by category rather than by file
Group log types into a small number of categories, such as security investigation, operational troubleshooting and compliance evidence, and assign one retention period per category. Confirm the retention window that applies to each log type in your own org before you write a period down. Record any gap between the period your team expects and the period the platform supports as an open item for the owner to decide.
Define who may read event logs
Access to logs should follow the same reasoning as access to the records they describe. Someone who reads logs can often reconstruct what other users did, so log access deserves a deliberate grant rather than a side effect of a broad administrator role. Start by listing the groups with a real need: security reviewers, the administrators who maintain the org, and the support or compliance staff who handle extract requests. Anyone outside those groups should go through a request instead of holding standing access.
Separate reading logs from changing configuration
Where your team is large enough, keep the people who read logs separate from the people who change settings. An administrator who can both alter a setting and read the trail of who changed it can, in principle, hide a change from that trail. In a small team where one person must do both, have a second person review the extracts that person pulls, and record the review date.
Grant log access through permission sets
Assign log access through a permission set for each named group, rather than by editing individual profiles one user at a time. A permission set is easier to review, easier to remove and easier to explain to an auditor. Check the assignments against your register each quarter, and remove any grant whose owner has left the role. The layout suited to a small group is covered in how permission sets can be organized for a small team.
Control when a log leaves the org for an investigation
A log extract is a copy of sensitive activity data. Once it is copied out, it sits outside the controls on the platform and depends on wherever it is stored. Write down the request, the reason, the approver and the storage location before the file is created.
Open each request with a stated reason and a narrow scope
The request should name the question the extract answers, the date range it covers and the people who will see the result. A request for “last month’s logs” invites an overbroad pull. A request for failed logins for one user during one week can be checked against the question and trimmed before anyone runs it.
Keep a chain of custody record for each extract
Use the same sequence each time so a reviewer can reconstruct what happened without asking the requester:
- Log the request with the requester, the approver, the date and the stated reason.
- Pull only the fields and the date range named in the request.
- Store the extract in a restricted location that carries the same access list as the investigation.
- Record who received a copy and when it was shared.
- Set a deletion date for the working copy when the request is opened.
- Close the request with a note on what was found, or a statement that nothing relevant was found.
Keep audit evidence usable without broad access
Investigations usually need the answer rather than the entire log. Build filtered views or saved extracts that show the fields a reviewer needs, such as the user, the time, the action and the object affected. Leave out fields that expose personal data unrelated to the question, and share the filtered view instead of granting access to the full log store.
Test each filtered view with a harmless scenario before the first real request. A reviewer who discovers a missing column in the middle of an incident has no time to repair it. Create a test record, perform a known action on it, and confirm that the extract shows that action with the expected fields and time stamp.
Test the access model before an incident needs it
Test retention and access in a sandbox or a test org, following your normal change process. Confirm three things: a user without the log permission set cannot read the logs, a user with it can, and an extract request moves through the written steps. Plan sandbox refreshes so test extracts do not depend on data that a refresh may replace. For a fuller view of that planning, see sandbox refresh planning.
Troubleshoot common gaps in retention and access
A log is missing for the period you need
Check first whether the log was being collected for that period and whether it was kept for as long as your register expects. If the gap sits inside the window you expected, record it as a finding in the investigation notes. Do not fill the gap with assumptions, because a reviewer who later finds an assumption will question the rest of the notes.
A reviewer can see more than the review requires
Check the permission sets and any profiles assigned to the reviewer for broad grants that were added for another purpose. Remove the extra access, then record the change. The reviewer may already have viewed data outside the scope of the request, and that exposure needs its own note in the register.
An extract is slow or fails
Narrow the date range and the field list before retrying. Larger pulls take longer and are more likely to hit processing limits, so plan extract size against the limits that apply to your org. The limits that tend to affect administrators are covered in governor limits for admins. Splitting one large request into several dated requests keeps each one easy to check.
Plan for release and configuration changes
Log types, field names and retention options can change between releases. Before each release, read the release notes for the log types your register depends on, check whether each filtered view still returns the fields reviewers expect, and rerun the test extract. Keep the register dated or under version control, so you can show which retention period was in force when a given investigation took place.
Configuration changes that alter how records are written can also change what the logs show. When one is planned, note whether it touches the objects or fields your filtered views rely on, and retest those views afterward. For help planning this work, see Salesforce implementation.
Questions about retention periods and extract requests
How should I choose between a short and a long retention period for one log type?
Start with the longest question the log is expected to answer, then weigh that need against the access risk of keeping the data that long. A log that supports a compliance obligation usually earns the longer window, and the owner should sign off on the choice in writing.
Should administrators be able to read all event logs?
Administrators often need logs to troubleshoot. When an administrator pulls an extract covering their own changes, a second person should review it, as described above.
Who should approve a log extract that leaves the org?
Name one approver outside the requester’s team, usually the owner of the log category, such as the security or compliance lead. The approval should come before the pull runs, not after the file has been shared.
What should happen to an extract after the investigation closes?
Delete the working copies on the date set when the request was opened. Keep the closing note and the approval record, because those show what was reviewed and why. The raw file carries the most exposure, so it is the part to remove first.
Can a filtered view replace a full log extract?
For many reviews it can. Use the full extract when the question depends on a field the view leaves out, and record in the request why it was needed.