Updated on 2023-04-20 GMT+08:00

Viewing Logs in CTS

When you enable CTS, operations performed on Application Orchestration Service (AOS) resources begin to be recorded. On the CTS console, you can query operation records from the last 7 days by performing the following operations.

Procedure

  1. Log in to the CTS console.
  2. In the left navigation pane, click Trace List.
  3. Filter the desired operation events.

    The trace list supports four filter types:
    • Trace Source, Resource Type, and Search By

      Select the search criteria from the drop-down lists. For example, select AOS from the Trace Source drop-down list box.

      From the Search By drop-down list, specify a trace name. From the Search By drop-down list, select or enter a specific resource ID. From the Search By drop-down list, select or enter a specific resource name.

    • Trace Status: Select one of All trace statuses, Normal, Warning, and Incident.
    • Operator: Select a specific operator (at the user level rather than the account level).
    • Time range: You can query traces generated during any time range in the last seven days.

  4. On the left of the to-be-queried record, click to view details.
  5. Click View Trace in the Operation column. On the displayed View Trace dialog box, the trace structure details are displayed.

    {
        "service_type": "AOS",
        "user": {
            "domain": {
                "name": "***",
                "id": "6c389820d2fd46489c8987e5eb2675cc"
            },
            "id": "19652d0b0ff1407a9432b85b9e12f9eb",
            "name": "***"
        },
        "time": "2018/04/26 16:16:53 GMT+08:00",
        "code": 200,
        "resource_type": "AOS",
        "resource_name": "Stack",
        "resource_id": "19652d0b0ff1407a9432b85b9e12f9eb",
        "source_ip": "192.168.12.22",
        "trace_name": "PreviewStack",
        "trace_type": "ApiCall",
        "request": {},
        "api_version": "3.0.0",
        "message": "Preview stack successfully. Project id: 1e19d41bb1f24b5da4a98107607aac0f, stack name: jhgdjh, template id: cea9ee29-3b39-f7be-d093-aff126b250e8, cluster id: . ",
        "record_time": "2018/04/26 16:16:53 GMT+08:00",
        "trace_id": "2da40c60-492a-11e8-a065-286ed488cbe3",
        "trace_status": "warning"
    }