Help Center/ Cloud Trace Service/ Best Practices/ Downloading Operation Traces from CTS
Updated on 2025-07-03 GMT+08:00

Downloading Operation Traces from CTS

By default, CTS records operation traces of the last seven days for each Huawei Cloud account. You can query these traces on the CTS console and export all traces in the query result. If transfer is not configured, the CTS console keeps operation logs for seven days. After that, the logs are automatically deleted and cannot be accessed, even if transfer is configured later.

If you need to obtain operation traces for more than seven days for audits or local analysis, configure a system tracker to transfer traces to OBS or LTS. Then, download these traces as files via OBS or LTS.

This section describes how to download operation traces from CTS, OBS, and LTS.

  1. You will be billed for storing files in OBS and downloading files from OBS buckets. For details about OBS pricing, see Product Pricing Details.
  2. You will be billed for storing logs in LTS. For details about LTS pricing, see Product Pricing Details.

Downloading Operation Traces from CTS

  1. Log in to the CTS console.
  2. In the navigation pane, choose Trace List.
  3. In the upper part of the page, click Last 1 hour to set the query time range.
  4. Click Export and choose Export all data to an XLSX file. CTS exports all traces in the query result as an .xlsx file. The file contains all traces in the query result. A maximum of 5,000 pieces of information can be exported.

Downloading Operation Traces from OBS

  1. On the CTS console, go to the Tracker List page. The OBS buckets configured during trace transfer will be displayed on the Storage column of the system tracker. (In this case, the OBS bucket name is system-bucket-01).
  2. Click system-bucket-01 to access its management page on the OBS console.

    Figure 1 Clicking the OBS bucket name

  3. In the navigation pane of the management page, click Objects.
  4. On the displayed page, open the folders in sequence according to the trace file storage path.

    Trace file path format: OBS bucket name > CloudTraces > Region > Year > Month > Day > Tracker name > Cloud service

    If you disable Sort by Cloud Service when configuring a tracker to transfer traces to OBS, the cloud service will not be displayed in the transfer path.

  5. You can download a single object or download objects in batches. For details, see Downloading an Object.

    • Download a single object:

      Click Download on the right of the object to be downloaded. The file is downloaded to the default download path of your browser. To save it to a custom path, click More > Download As on the right.

    • Download objects in batches:

      Select multiple objects and choose More > Download above the object list.

  6. Decompress the downloaded package to obtain a JSON file with the same name as the package. Open the JSON file using a text file editor to check historical traces.

Downloading Operation Traces from LTS

  1. On the CTS console, click Tracker List. The LTS log stream CTS/system-trace configured during trace transfer will be displayed on the Storage column of the system tracker.
  2. Click the log stream name CTS/system-trace to access its log stream page on the LTS console.

    Figure 2 Clicking the log stream name

  3. Downloading logs: Click in the upper right corner of the page. On the displayed page, select a download mode to download the log file to the local PC. For details, see Common Log Search Operations.