You can download the audit logs in the query result to your local device, and then archive, filter, and analyze the logs.

Prerequisites

You have activated the new version of Log Service. For more information, see Enable the new version of the audit log feature.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. On the top of the page, select the region where the instance is deployed.
  3. On the Instances page, click the Instance ID of the instance.
  4. In the left-side navigation pane of the Instance Information page, choose Logs > Audit Log.
  5. In the log chart section, choose More _Download Log > Download Log in the upper-right corner of the specified chart.
    Note You can filter logs by using the following methods. Then, you can download the content that meets your requirements.
    • Filter log data by keyword, type, account, or client IP address. For more information, see Query audit logs.
    • Filter logs by time when logs are generated. Click Select Time Range above the Download Log button to select a time range.
    Download LogsAfter you click Download Log, the selected log entries are saved to a .csv file on your local device through the web browser. Then, you can view the log data by using tools such as Excel.View logs in a CSV file