Help Center/ Cloud Trace Service/ Getting Started/ Querying Real-Time Traces
Updated on 2022-09-27 GMT+08:00

Querying Real-Time Traces

Scenarios

After CTS is enabled, the tracker starts recording operations on cloud resources and data in OBS buckets. CTS stores operation records for the last seven days.

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

Procedure

  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. In the navigation pane on the left, choose Trace List.
  4. Specify the search criteria as needed.
    • Search time range: In the upper right corner, choose Last 1 hour, Last 1 day, or Last 1 week, or specify a custom time range.
    • 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, you can only 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 5000 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 Structure" in the Cloud Trace Service User Guide and section "Example Traces" in the Cloud Trace Service User Guide.