tencent cloud

Tencent Cloud Observability Platform

Release Notes and Announcements
Release Notes
Product Introduction
Overview
Strengths
Basic Features
Basic Concepts
Use Cases
Use Limits
Purchase Guide
Tencent Cloud Product Monitoring
Application Performance Management
Mobile App Performance Monitoring
Real User Monitoring
Cloud Automated Testing
Prometheus Monitoring
Grafana
EventBridge
PTS
Quick Start
Monitoring Overview
Instance Group
Tencent Cloud Product Monitoring
Application Performance Management
Real User Monitoring
Cloud Automated Testing
Performance Testing Service
Prometheus Getting Started
Grafana
Dashboard Creation
EventBridge
Alarm Service
Cloud Product Monitoring
Tencent Cloud Service Metrics
Operation Guide
CVM Agents
Cloud Product Monitoring Integration with Grafana
Troubleshooting
Practical Tutorial
Application Performance Management
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Parameter Information
FAQs
Mobile App Performance Monitoring
Overview
Operation Guide
Access Guide
Practical Tutorial
Tencent Cloud Real User Monitoring
Product Introduction
Operation Guide
Connection Guide
FAQs
Cloud Automated Testing
Product Introduction
Operation Guide
FAQs
Performance Testing Service
Overview
Operation Guide
Practice Tutorial
JavaScript API List
FAQs
Prometheus Monitoring
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Terraform
FAQs
Grafana
Product Introduction
Operation Guide
Guide on Grafana Common Features
FAQs
Dashboard
Overview
Operation Guide
Alarm Management
Console Operation Guide
Troubleshooting
FAQs
EventBridge
Product Introduction
Operation Guide
Practical Tutorial
FAQs
Report Management
FAQs
General
Alarm Service
Concepts
Monitoring Charts
CVM Agents
Dynamic Alarm Threshold
CM Connection to Grafana
Documentation Guide
Related Agreements
Application Performance Management Service Level Agreement
APM Privacy Policy
APM Data Processing And Security Agreement
RUM Service Level Agreement
Mobile Performance Monitoring Service Level Agreement
Cloud Automated Testing Service Level Agreement
Prometheus Service Level Agreement
TCMG Service Level Agreements
PTS Service Level Agreement
PTS Use Limits
Cloud Monitor Service Level Agreement
API Documentation
History
Introduction
API Category
Making API Requests
Monitoring Data Query APIs
Alarm APIs
Legacy Alert APIs
Notification Template APIs
TMP APIs
Grafana Service APIs
Event Center APIs
TencentCloud Managed Service for Prometheus APIs
Monitoring APIs
Data Types
Error Codes
Glossary

Query Associated Logs in Link Details

PDF
Focus Mode
Font Size
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.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback