CTS Traces
Scenarios
After CTS is enabled, it starts recording operations on cloud resources. You can view the operation records of the last seven days on the management console.
This topic describes how to query or export the last seven days of operation records on the CTS console.
Procedure
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Click Service List in the upper left corner. Under Management & Deployment, select Cloud Trace Service.
- In the left navigation pane, choose Trace List.
- Specify filters to search for your desired traces.
- Trace Type, Trace Source, Resource Type, and Search By
Select the filter from the drop-down list.
If you select Resource ID for Search By, specify a resource ID.
- Operator: Select one or more operators from the drop-down list.
- Trace Status: Available options include All trace statuses, normal, warning, and incident. You can select only one of them.
- Time range: You can query traces generated at any time range of the last seven days.
- Trace Type, Trace Source, Resource Type, and Search By
- Click on the left of the required trace to expand its details.
- Click View Trace.
CTS Log Entries
Each log entry consists of a trace in JSON format. A log entry indicates an SMN API request, including the requested operation, the date and time, operation parameters, and information about the user who sent the request. The user information is obtained from IAM.
{ "time": "2017-02-15 14:21:50 GMT+08:00", "user": "xxx", "request": "xxx", "response": "xxx", "code": 200, "service_type": "SMN", "resource_type": "topic", "resource_id": "topicUrn instance", "source_ip": "127.0.0.1", "trace_name": "createTopic", "trace_rating": "normal", "trace_type": "ApiCall", "api_version": "2.0", "project_id": "tenantId instance", "record_time": "2017-02-15 14:21:50 GMT+08:00", "trace_id": "xxx" } { "time": "2017-02-15 14:12:15 GMT+08:00", "user": "xxx", "response": "xxx", "code": 200, "service_type": "SMN", "resource_type": "topic", "resource_id": "topicUrn instance", "source_ip": "127.0.0.1", "trace_name": "deleteTopic", "trace_rating": "normal", "trace_type": "ApiCall", "api_version": "2.0", "project_id": "tenantId instance", "record_time": "2017-02-15 14:12:15 GMT+08:00", "trace_id": "xxx" } { "time": "2017-02-13 15:38:30 GMT+08:00", "user": "xxx", "request": "xxx", "response": "xxx", "code": 200, "service_type": "SMN", "resource_type": "topic", "resource_id": "topicUrn instance", "source_ip": "127.0.0.1", "trace_name": "updateTopic", "trace_rating": "normal", "trace_type": "ApiCall", "api_version": "2.0", "project_id": "tenantId instance", "record_time": "2017-02-13 15:38:30 GMT+08:00", "trace_id": "xxx" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot