Updated on 2023-05-09 GMT+08:00

Viewing Audit Logs

Scenario

After Cloud Trace Service (CTS) is enabled, the tracker starts recording operations on cloud resources and data in OBS buckets. CTS keeps operation records of the latest 7 days.

This section describes how to query and export operation records of the last seven days on the CTS console.

Procedure

  1. Log in to the management console.
  2. Click Service List and choose Management & Governance > Cloud Trace Service.
  3. In the navigation pane, click Trace List.
  4. Specify the search criteria as needed.
    • Time range: Select a time range in the upper right.
    • Trace Type, Trace Source, Resource Type, and Search By: Select a filter from the drop-down list.

      If you select Resource ID for Search By, specify a resource ID.

      If you select Data for Trace Type, filter traces by tracker.

    • Operator: Select one or more operators from the drop-down list.
    • Trace Status: Select All trace statuses, Normal, Warning, or Incident.
  5. Click Query.
  6. Click Export on the right to export all traces in the query result as a CSV file. The file can contain up to 5,000 records.
  7. Click on the left of a trace to expand its details.
  8. Click View Trace in the Operation column. The trace details are displayed.

    For details about key fields in the trace structure, see section "Trace References" in the Cloud Trace Service User Guide.