Last reviewed · Rinexis SAP security team
The SAP Security Audit Log is the ABAP system's built-in security event log. It records events such as successful and failed logons, RFC logons and calls, transaction and report starts, user master changes and debugger activity, according to filters you configure in SM19 or RSAU_CONFIG, and is read with SM20 or RSAU_READ_LOG.
What the Security Audit Log records
The Security Audit Log (SAL) answers who did what, from where and when, for security-relevant events. It is different from change documents (CDHDR/CDPOS), which record changes to business objects, and from table logging (SCU3), which records changes to logged tables. SAL records activity, not data values, so it is the trace that remains when a privileged user works through the debugger or programs that write no change documents.
| Audit class | Typical events |
|---|---|
| Dialog logon | Successful and failed logons, logoffs, password checks |
| RFC/CPIC logon | Successful and failed logons through RFC and CPIC |
| RFC function call | Function modules called remotely; high volume on interface-heavy systems |
| Transaction start | Each transaction started, and transaction starts refused for lack of authorization |
| Report start | Reports and programs started, including through SA38 and SE38 |
| User master change | Users created, deleted, locked, unlocked, and changes to their authorizations or passwords |
| System events | Audit configuration changes, application server start and stop |
| Other events | Debugger use, including changing field values (the debugger replace function), and other miscellaneous security events |
Each event has a message ID. Common ones include AU1 (successful logon), AU2 (failed logon), AU3 (transaction started), AUW (report started) and CUL (field content changed in the debugger). Reviewers filter on these IDs when they look for specific activity.
Configuration: SM19 vs RSAU_CONFIG
On older releases the log is configured in transaction SM19. Newer releases replace it with RSAU_CONFIG, which combines the parameter view, filter configuration and a check of the current settings in one place. The concepts are the same in both.
- Static configuration is saved in the database and becomes active on all application servers. It survives restarts and is the configuration auditors expect to see.
- Dynamic configuration changes the active filters on running application servers immediately, for example to trace a user during an investigation. It is lost at the next restart.
- Each filter (slot) combines a client, a user name (generic values such as
FF_*are allowed), the audit classes and an event severity: critical only, important and critical, or all events.
Changes to the audit configuration are themselves security events. Restrict who can change it, and include configuration changes in your review.
Key profile parameters
| Parameter | Purpose |
|---|---|
rsau/enable | Activates the Security Audit Log on the application server (1 = on) |
rsau/selection_slots | Number of filters that can be defined |
rsau/max_diskspace/per_file | Maximum size of a single audit file |
rsau/max_diskspace/per_day | Maximum size of all audit files per day; logging stops for the day when reached |
rsau/user_selection | Controls how user names in filters are interpreted, allowing more flexible user selection |
rsau/integrity | Activates integrity protection for audit files so tampering can be detected |
Set parameters in the instance or default profile, not only dynamically in RZ11, so they survive a restart. A common finding is rsau/enable set dynamically on one server only.
Reading the log: SM20 vs RSAU_READ_LOG
SM20 is the classic evaluation transaction. RSAU_READ_LOG is its successor on newer releases, with better selection by user, client, terminal, transaction or program, and by message ID. Both read the logs of all application servers, so one evaluation covers the whole system.
Reading and configuring the log are controlled through S_ADMI_FCD, with separate values for display (AUDD) and administration (AUDA). Reviewers should get display only. Many teams also forward events to a SIEM so that the log is not only reviewed in the system it describes.
What to log: a practical baseline
Logging every event for every user produces a volume nobody reviews and can exhaust disk space. Logging too little leaves privileged activity untraced. Most teams settle on a layered filter set.
- All users, all clients: critical and important events, which captures failed logons, user master changes and configuration changes at modest volume.
SAP*,DDICand other standard users in every client, including 000: all events in all classes. Activity on these users should be rare enough that every entry is reviewable. See SAP_ALL, SAP_NEW and standard users.- Firefighter IDs and emergency users: all events, because SAL captures debugger replace and direct program execution that change documents miss.
- Basis and security administrators with critical access: transaction and report starts plus user master changes.
- Technical and interface users: RFC logons, and RFC function calls only where an interface is in scope for investigation, since call logging is heavy.
Storage, retention and review
By default the log is written to files in the audit directory of each application server (DIR_AUDIT). Old files are deleted with SM18 or through the administration functions in RSAU_ADMIN; size limits come from the rsau/max_diskspace parameters. Decide retention from your audit and legal requirements, and archive or forward files before they are deleted.
Newer releases can also store the log in the database instead of files, which simplifies central evaluation but needs its own sizing and deletion policy.
- Review on a fixed schedule, with an owner independent of the users being reviewed. Basis should not be the only reviewer of Basis activity.
- Keep evidence: the selection used, the period covered, findings and sign-off. Auditors testing ITGC privileged access ask for this.
- Prove the configuration was active for the whole period. A gap in logging is a finding even when no misuse occurred.
Frequently asked questions
What is the difference between SM19 and SM20?
SM19 configures the Security Audit Log: the filters that decide which users, clients and events are recorded. SM20 reads and evaluates the recorded events. On newer releases their successors are RSAU_CONFIG for configuration and RSAU_READ_LOG for evaluation.
How do I activate the SAP Security Audit Log?
Set profile parameter rsau/enable to 1 in the instance or default profile, define and activate static filters in SM19 or RSAU_CONFIG, and restart the application servers if required so the settings persist. Then confirm events are arriving with SM20 or RSAU_READ_LOG.
What is the difference between static and dynamic audit log filters?
Static filters are stored in the database and remain active after a restart on all application servers. Dynamic filters change logging on running servers immediately but are lost at the next restart, so they suit short investigations rather than the standing audit configuration.
Does the Security Audit Log record what data was changed?
No. It records that an event happened, such as a transaction start or a debugger field change, with user, time and terminal. Old and new data values come from change documents and table logging, so the three sources are used together.
What should be logged for firefighter IDs?
Log all audit classes for firefighter and emergency users in every client. Their sessions are infrequent and high-risk, and the Security Audit Log captures debugger and program activity that change documents and firefighter session logs may not show.
ITGC Audit Control covers logging and monitoring as part of the access controls in an ITGC audit: scoping the control, questionnaires, PBC evidence such as audit log configuration and review sign-offs, control testing and five-element findings in versioned reports.
Our governance controls and SAP GRC services help teams design audit log filters for privileged and emergency users and connect log review to firefighter processes in GRC Access Control.