Help Center/ FunctionGraph/ User Guide/ Audit/ Querying Real-Time Traces
Updated on 2024-04-28 GMT+08:00

Querying Real-Time Traces

Scenarios

After you enable CTS and the management tracker is created, CTS starts recording operations on cloud resources. After a data tracker is created, the system starts recording operations on data in OBS buckets. CTS stores operation records generated in the last seven days.

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

Viewing Real-Time Traces in the Trace List

  1. Log in to the management console.
  2. Click in the upper left corner and choose Management & Deployment > Cloud Trace Service. The CTS console is displayed.
  3. Choose Trace List in the navigation pane on the left.
  4. Set filters to search for your desired traces. The following filters are available:
    • 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 Trace name for Search By, specify a trace name.
      • If you select Resource name for Search By, specify a resource name.
    • Operator: Select a user.
    • Trace Status: Select All trace statuses, Normal, Warning, or Incident.
    • Time range: You can query traces generated during any time range in the last seven days.
    • Click Export to export all traces in the query result as a CSV file. The file can contain up to 5000 records.
  5. Click Query.
  6. On the Trace List page, you can also export and refresh the trace list.
    • Click Export to export all traces in the query result as a CSV file. The file can contain up to 5000 records.
    • Click to view the latest information about traces.
  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.

  9. For details about key fields in the trace structure, see section "Trace References" > "Trace Structure" and section "Trace References" > "Example Traces" in the CTS User Guide.