SAP Security Audit Log: SM19/SM20, Event Selection and Retention
Free sample lesson · open to everyone
Configure and review the ABAP Security Audit Log as a targeted evidence source for security-relevant logon, user, authorization and system events, with governed retention and monitoring.
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
An incident investigation needed failed privileged logons from six weeks earlier, but local audit retention was only seven days and no SIEM forwarding existed. The security baseline was updated with risk-based retention and log-health monitoring.
Explanation
SM19 and SM20 are the classic transactions for working with the Security Audit Log — SM19 handles configuration and SM20 handles analysis — while RSAU_CONFIG and RSAU_READ_LOG are the current NetWeaver equivalents, including on S/4HANA, used for configuration and analysis respectively. Depending on the release, a system might have either pair available, or both alongside each other.
Scoping what the log actually records should reflect security policy rather than a leftover default: successful and failed logons, user administration activity, security-relevant changes, RFC calls, and other critical events as supported by the release. Recording everything without any capacity planning creates excessive log volume, while recording too little means real incidents get missed entirely.
Protecting this evidence matters as much as collecting it: access to audit configuration and to the logs themselves needs to be restricted, and the very privileged users whose actions are being monitored should never have unrestricted ability to disable logging or erase the evidence being generated about them.
Retention needs to be aligned with investigation and compliance requirements, and forwarding logs to a SIEM can support correlation and longer retention periods, though the health of the source configuration still needs regular checks even when forwarding is in place. Ultimately, the log by itself only shows that an event occurred — it doesn't prove intent. Getting the full picture requires correlating it with change documents, transport records, Firefighter or EAM evidence, and the relevant business context.
How the SAP process fits together
SAP PROCESS EXPLORER · Security: identity to compliant access
ERPClimb.comAudit Logs — process breakdown
Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.
Selected process stage
Enable
Configure relevant SAP application/security logging
Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario.
Watch out
Common mistakes
Enabling every event class for every client and user without sizing the volume first — this fills the audit log fast, pushes out older (and often more important) entries, and can create performance or storage pressure that gets the log scaled back entirely under pressure, which defeats its purpose.
Giving the administrators whose privileged actions are being monitored unrestricted rights to the audit configuration — if the people being watched can also change filters or disable logging, the control has no independent teeth and an insider can simply turn off the evidence before acting.
Setting log retention shorter than the time an investigation typically takes to start — incidents are often discovered weeks after the fact, and if the relevant window has already rolled off with no SIEM forwarding, there is no way to reconstruct what happened.
Assuming "no log entry" means "no action occurred" without first checking log health — a filter that excludes the event, a full log that silently dropped entries, or a configuration gap can all produce the same absence of evidence as nothing having happened; always verify the audit configuration actually captured events for that period before relying on their absence.
Treating a logged audit event as proof of intent or wrongdoing by itself — the log shows that an action occurred, not why; conclusions about intent require correlating the event with change documents, transport records, EAM/Firefighter evidence, and business context.
Do this
Best practices
Protect the audit log configuration itself — restrict who can change event filters or disable logging, and make sure that set of people does not overlap with the privileged users the log exists to monitor.
Monitor log health and storage proactively (fill rate, rollover, archiving success) rather than discovering a gap only when an investigation needs data that was never captured.
Set retention based on actual investigation and compliance timelines, not a default value — align it with how long after an event incidents are typically reported or discovered in your organization.
Forward critical security events to a central SIEM for long-term retention and cross-system correlation, while still keeping the local source configuration healthy and monitored.
Correlate audit log events with other evidence — change documents, transport records, and EAM/Firefighter session logs — before drawing conclusions, since the audit log alone only proves an event occurred, not the intent behind it.
In the interview
Interview angle
Typical question: "How do you set up and review the Security Audit Log?"
A strong answer covers:
- Configuration: filters define which events are logged for which clients and users (SM19, or RSAU_CONFIG in newer releases), focused on high-risk users and critical events.
- Review: read the log (SM20, or RSAU_READ_LOG) or forward it to a SIEM, with someone owning regular review and follow-up.
- Governance: retention and archiving rules, protection of log files, and separation of duties so the people being monitored cannot change the filters or delete the log.
Loses marks: "switch it on for all users and all events", with no thought about volume, review or who controls it.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
Scenario — An incident investigation needed failed privileged logons from six weeks earlier, but local audit retention was only seven days and no SIEM forwarding existed. For the lesson "SAP Security Audit Log: SM19/SM20, Event Selection and Retention", which response shows the strongest architecture and production judgment?
Question 2 of 3
Which of the following is NOT one of the standard event categories (audit classes) that can be selected when defining a Security Audit Log filter?
Question 3 of 3
Which practice best supports effective long-term management of Security Audit Log data growth on application servers?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1You are the senior consultant/architect responsible for SAP Security Audit Log: SM19/SM20, Event Selection and Retention. The project situation is: An incident investigation needed failed privileged logons from six weeks earlier, but local audit retention was only seven days and no SIEM forwarding existed. How would you assess the design, identify the highest-risk failure modes, and define the evidence required before approving it for production?
2Using this SAP project situation — Configure logging for failed privileged logons, then review events and correlate them with a known test account to understand what the log can and cannot prove — explain Security Audit Log Fundamentals. What should happen, which concepts or process steps matter, and what common mistake would you avoid?
Was this lesson helpful?
Keep exploring
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.