Monitor Read and Change Actions with Audit Logs
Monitor the read and change actions (policies) performed in the database with audit logs, and see who did what and when.
Prerequisites
-
Data Warehouse General (-R------) - To access SAP Datasphere.
-
System Information (-RU-----) - To access the System tool.
Context
To monitor read and change actions with audit logs, you must first prepare a space for audit logs and designate it as the monitoring space. You can then review audit log records in Data Builder views.
Prepare a Space for Monitoring Audit Logs
We recommend using a dedicated space for audit logs to maintain greater control over who can access audit log data.
-
Choose a space that will contain the audit logs or, alternatively, create a new space (see Create a Space).
-
Grant access to the space only to certain users and keep access restricted.
-
Add one or more users to an existing scoped role (see Add Users to a Scoped Role).
-
Create a scoped role and add the space and users to the scoped role (see Create a Scoped Role).
-
-
In the side navigation area, select , select the space from the drop-down list to enable to save the audit logs in that space and select Confirm Selected Space.
Review Audit Log Records
-
In the side navigation area, click (Data Builder) and create a view (see Creating a Graphical View.)
-
Add one or more of the following views from the DWC_AUDIT_READER schema as sources:
-
ANALYSIS_AUDIT_LOG - Contains audit log entries for all actions of the database analysis users (see Create a Database Analysis User to Debug Database Issues).
-
AUDIT_LOG_OVERVIEW - Contains an overview of all audit policies - including those for spaces, database analysis users, and sensitive personal data read access - and the number of audit log entries associated with each policy.
When audit policies for read or change operations are enabled on a space, the corresponding policy names are:-
DWC_DPP_<space name>_READ
-
DWC_DPP_<space name>_CHANGE
-
-
COLUMN_ACCESS_AUDIT_LOG - Not in use
-
DPP_AUDIT_LOG - Contains audit log entries for spaces where audit logging has been enabled by a space administrator (see Logging Read and Change Actions for Audit).
-
Delete Audit Logs
You can delete audit logs and free up disk storage.
-
Spaces for which auditing is enabled. For each space, you can delete separately all the audit log entries recorded for read operations and all the audit log entries recorded for change operations. All the entries recorded before the date and time you specify are deleted.
-
All read audit logs recorded for all database analysis users. They are grouped together into the audit policy DWC_ANALYSIS_USERS_AUDIT_ALL.
-
Go to .
-
Select the spaces (and the audit policy names - read or change) or the database analysis user audit policy (DWC_ANALYSIS_USERS_AUDIT_ALL) for which you want to delete all audit log entries and click Delete.
-
Select a date and time and click Delete.
All entries that have been recorded before this date and time are deleted.
Deleting audit logs frees up disk storage, which you can see in the Disk Storage Used card in .

