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

To monitor database operations with audit logs, you must have a global role that grants you the following privileges:
  • Data Warehouse General (-R------) - To access SAP Datasphere.

  • System Information (-RU-----) - To access the System tool.

The DW Administrator role template, for example, grants these privileges. For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.

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.

  1. Choose a space that will contain the audit logs or, alternatively, create a new space (see Create a Space).

  2. Grant access to the space only to certain users and keep access restricted.

  3. In the side navigation area, select Start of the navigation pathSystem Next navigation step Configuration Next navigation step AuditEnd of the navigation path, 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

  1. In the side navigation area, click (Data Builder) and create a view (see Creating a Graphical View.)

  2. 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.

You can delete audit logs for:
  • 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.

  1. Go to Start of the navigation pathSystem Next navigation step Configuration Next navigation step Audit Next navigation step Audit Log DeletionEnd of the navigation path.

  2. 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.

  3. 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 Start of the navigation pathMonitoring Next navigation step System and Spaces Next navigation step DashboardEnd of the navigation path.