Updated on 2025-08-12 GMT+08:00

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

  1. Log in to ServiceStage.
  2. 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.

  3. If the component is created by Creating a Component by Importing a CCE Workload and is not enabled:

    1. In the displayed dialog box, click OK.
    2. On the Enable Component page, click Enable and wait until the component is restarted.

  4. On the Running Logs(LTS) page, click Configure Now.
  5. 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.

    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.

  6. 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.