tencent cloud

Query Associated Logs in Link Details
Last updated: 2025-03-12 11:33:12
Query Associated Logs in Link Details
Last updated: 2025-03-12 11:33:12
If you use Tencent Cloud Log Service (CLS) to store logs, you can associate link data with log data. When an application encounters performance issues, you can quickly query the business logs corresponding to a link in the Application Performance Management (APM) console, and promptly perform localization analysis and problem-solving.

Prerequisites

I have understood and used Tencent Cloud Log Service (CLS). For details, see Cloud Log Service (CLS) Related Guidance.

Directions

Step 1: Output TraceID To Logs

To achieve association query between links and logs, you need to output TraceID to the logs. For applications accessing APM in the following two ways, TraceID can be automatically injected into the logs without modifying the code:
For applications accessing APM in other ways, please refer to the corresponding access documentation, obtain TraceID in the code, and output TraceID in the business logs.

Step 2: Associate Logs On the System Configuration Page

1. Log in to TCOP.
2. In the left sidebar, select APM > System Configuration > Business System Configuration page.
3. Select the corresponding business system, and click edit on the log association page.
4. Configure the log association information.
Enable associated logs.
Select the corresponding log region, log set and log topic.
5. Click Confirm after completing the configuration.
Besides configuring log association at the business system level, you can also configure log association at the application level. Go to Application Performance Management > System Configuration > Application Configuration to operate. The specific configuration method is the same as that at the business system level.

Step 3: View Log Information On the Link Query Page

1. Log in to TCOP.
2. In the left sidebar, select APM > Linkage Tracking to enter the linkage tracking page.
3. Select the corresponding business system, find the corresponding TraceID, and click TraceID to enter link detail.
4. Switch the log menu in the right window to view the log-related information and troubleshoot faults.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback