Deliver Logs to CLS
Tencent Cloud Log Service (CLS) provides a one-stop log data solution, supporting capabilities such as log alerting, dashboard analysis, and delivery. CloudBase supports delivering environment logs to CLS for long-term storage and analysis, and also supports delivering them back to CloudBase.
Deliver Logs to CLS
- Sign in to the CloudBase platform and select the target environment.
- Select Log Monitoring in the left navigation pane and open the Log Management tab at the top of the page.
- Click Log Settings in the upper-right corner of the page, select Deliver to CLS, choose a log topic in the dialog, and confirm the delivery.
Note
- After the delivery, logs are written to CLS and billed separately by CLS.
- Only logs generated after the delivery are delivered. Historical logs from before the delivery remain available on the CloudBase side.
- To switch back, you can deliver the logs back to CloudBase. See Deliver Logs Back to CloudBase.
Go to CLS Management
After the logs are delivered to CLS, a blue banner at the top of the Log Management page shows "Logs are delivered to CLS Log Service after XX time". Click the link in it to go to the CLS console for analysis.
Deliver Logs Back to CloudBase
After logs are delivered to CLS, you can still deliver them back to CloudBase:
- Sign in to the CloudBase platform and select the target environment.
- Select Log Monitoring in the left navigation pane and open the Log Management tab at the top of the page.
- Click Deliver back to CloudBase on the log home page and confirm.
Note
Delivering back to CloudBase only applies to logs generated after the switch. Historical logs already delivered to CLS remain available in the CLS console.
Related Documentation
- Log Alert Guide: Configure alerts on log content in CLS.
- Log Field Reference: Field meanings and search syntax of each log type.