Configuring an LTS Log Group
After configuring LTS logs for components that are not interconnected with LTS, you can view the component running logs collected by LTS on the ServiceStage console and query the logs.
Restrictions
If you want to collect the run logs of the container-deployed component to LTS for processing, there are the following restrictions:
- CCE cluster nodes whose container engine is Docker are supported.
- CCE cluster nodes whose container engine is Containerd are supported. You must be using ICAgent 5.12.130 or later.
- To collect container log directories mounted to host directories to LTS, you must configure the node file path.
- Currently, container file log collection supports only the Overlay2 storage driver, not Device Mapper. Run the following command to check the storage driver type:
docker info | grep "Storage Driver"
Configuring an LTS Log Group
- Log in to ServiceStage.
- Use either of the following methods to go to the Logs page.
- On the Application Management page, click the application to which the component belongs, click the target component in Component List, and choose O&M Configurations > Logs in the left navigation pane.
- On the Component Management page, click the target component and choose O&M Configurations > Logs in the left navigation pane.
- If the component is created by Creating a Component by Importing a CCE Workload and is not enabled:
- In the displayed dialog box, click OK.
- On the Enable Component page, click Enable and wait until the component is restarted.
- On the Running Logs(LTS) page, click Configure Now.
- Select a configuration method by referring to the following table.
Configuration Method
Description
Associate an existing LTS log group
Select the log group to be associated from the Log Group drop-down list.
- You have created a log group. For details, see Creating a Log Group.
- You have created a log stream. For details, see Creating a Log Stream.
- The path of the logs to be collected has been configured in the log stream.
- If the access mode of container-deployed components is CCE (Cloud Container Engine), see Ingesting CCE Application Logs to LTS.
- If the access mode of container-deployed components is ServiceStage - Containerized Application Logs, see Ingesting ServiceStage Containerized Application Logs to LTS.
- If the access mode is ServiceStage - Cloud Host Logs, see Ingesting ServiceStage Cloud Host Logs to LTS.
Automatically created and associated
- After a container-deployed component is configured and deployed, the system automatically generates log group and log stream configurations, and generates access configurations and host groups on the Ingestion Management page of the LTS console.
- Log Group: The naming rule is servicestage-{Application ID}. Use the ID of the application to which the component belongs.
- Log Stream: The naming rule is lts-topic-{Component name}. Use the name of the component connected to LTS.
- Ingestion: The naming rule is access-config-{Component name}. Use the name of the component connected to LTS.
- Host Group: The naming rule is k8s-log-{CCE cluster ID}. Use the ID of the CCE cluster where the component connected to LTS is located.
- After a VM-deployed component is configured and deployed, the system automatically generates log group and log stream configurations, and generates access configurations and host groups on the Ingestion Management page of the LTS console.
- Log Group: The naming rule is servicestage-{Application ID}. Use the ID of the application to which the component belongs.
- Log Stream: The naming rule is lts-topic-{Component name}. Use the name of the component connected to LTS.
- Ingestion: The naming rule is access-config-{Component name}. Use the name of the component connected to LTS.
- Host Group: The naming rule is vm-{Instance ID}. Use the ID of the component instance connected to LTS.
- Click OK.
After the log group is configured, you can view the component running logs collected by LTS on the Running Logs(LTS) tab.
Click Go To or
to go to the log stream page on the LTS console. You can manage component run logs. For details, see Log Management.
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