Files
doc-exports/docs/dbss/umn/dbss_01_0356.html
qinweiwei a42c766ca4 DBSS usermanual 20250429 version
Reviewed-by: Rogal, Marcel <mrogal@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: qinweiwei <qinweiwei@huawei.com>
Co-committed-by: qinweiwei <qinweiwei@huawei.com>
2025-06-25 06:40:13 +00:00

4.3 KiB

Step 2: Enable Database Audit

By default, database audit complies with a full audit rule, which is used to audit all databases that are connected to the database audit instance. You can enable audit and check audit results. For details, see Viewing the Audit Dashboard.

Enabling Database Audit

  1. Log in to the management console.
  2. Select a region, click , and choose Security > Database Security Service. The Dashboard page is displayed.
  3. In the navigation tree on the left, choose Databases.
  4. Select a database audit instance from the Instance drop-down list.
  5. In the Operation column of the database you want to audit, click Enable.

    The Audit Status of the database is Enabled. You do not need to restart the database.

    Figure 1 Enabling database audit

Verifying Audit Results

  1. Run an SQL statement (for example, show databases) in the target database.
  2. Log in to the management console.
  3. Select a region, click , and choose Security > Database Security Service. The database audit service page is displayed.
  4. In the left navigation pane, choose Dashboard.
  5. In the navigation tree on the left, choose Data Reports. The Data Reports page is displayed.
  6. In the Instance drop-down list, select the instance that audits the target database.
  7. Click the Statements tab.
  8. Set the start and end time, and click Submit.