Help Center> Database Security Service> FAQ> Logs> How Do I Back Up the Database Audit Logs?

How Do I Back Up the Database Audit Logs?

Database audit supports manual backup and automatic backup. Audit logs are backed up to OBS. Buckets will be automatically created and will incur a separate bill.

Perform the following operations to automatically or manually back up audit logs.

A manual backup will back up all your database audit logs. If the number of logs is too large, you are advised to use automatic backup. Daily automatic backup is recommended.

Automatically Backing Up Database Audit Logs

  1. Log in to the management console.
  2. Select a region, click , and choose Security & Compliance > Database Security Service. The Dashboard page is displayed.
  3. In the navigation tree on the left, choose Settings.
  4. In the Instance drop-down list, select the required instance and click the Backup and Restoration tab.
  5. Click Configure. In the displayed dialog box, set the parameters, as shown in Figure 1. Table 1 describes the parameters.

    Figure 1 Configure Automatic Backup dialog box
    Table 1 Parameters

    Parameter

    Description

    Example Value

    Automatic Backup

    Status of automatic backup

    • : enabled
    • : disabled

    Backup Period

    Automatic backup period. The options are as follows:

    • Daily
    • Weekly
    • Monthly

    Daily

    Started

    Start time of the backup. Click to configure.

    2020/01/14 20:27:08

    Estimated Next Time for Backup

    Time when the next automatic backup starts

    2020/01/15 20:21:29

    Access Key ID(AK)

    Access key (AK)

    -

    Secret Access Key(SK)

    Secret access key (SK)

    -

  6. Click OK.

Manually Backing Up Database Audit Logs

  1. Log in to the management console.
  2. Select a region, click , and choose Security & Compliance > Database Security Service. The Dashboard page is displayed.
  3. In the navigation tree on the left, choose Settings.
  4. In the Instance drop-down list, select the required instance and click the Backup and Restoration tab.
  5. Click Manually Back Up. In the displayed dialog box, set Backup Scope, AK, and SK, as shown in Figure 2.

    Figure 2 Manually Back Up dialog box

  6. Click OK.