Updated on 2026-11-09 GMT+08:00

Configuring LTS

You can use Log Tank Service (LTS) to manage operation logs in the bastion host.

Prerequisites

  • Your role has the management permission for the System module. For details about how to check the permissions of each role, see Role.
  • You have enabled Log Tank Service (LTS).
  • When installing ICAgent on a bastion host, bind an EIP to the bastion host. For details, see Binding or Unbinding an EIP to or from a Bastion Host.

Procedure

  1. Obtain the ICAgent installation command from LTS.

    For details, see Installing ICAgent (Intra-Region Hosts). You can click Copy Command as shown in Figure 1 to copy the installation command. The command structure is as follows:

    1
    set +o history;curl https://icagent-{region}.{obsdomain}/ICAgent_linux/apm_agent_install.sh > apm_agent_install.sh && REGION=[region] bash apm_agent_install.sh -ak {input_your_ak} -sk {input_your_sk} -region [region] -projectid [projectid] -accessip [accessip] -obsdomain [obsdomain] -aomvpcepurl [aomvpcepurl] -ltsvpcepurl [ltsvpcepurl];set -o history;
    
    Figure 1 Install ICAgent

  2. Process the command obtained in 1 according to the following rules:

    • Replace {input_your_ak} and {input_your_sk} in the command with the actual AK and SK you have.
    • Delete the set +o history; field from the command start and end lines.
    • If the bastion host is earlier than V3.3.54.0, change https to http. HTTPS is supported by bastion hosts V3.3.54.0 and later.

    The processed command formats are as follows:

    • Versions earlier than V3.3.54.0
      1
      curl http://icagent-{region}.{obsdomain}/ICAgent_linux/apm_agent_install.sh > apm_agent_install.sh && REGION=[region] bash apm_agent_install.sh -ak {input_your_ak} -sk {input_your_sk} -region [region] -projectid [projectid] -accessip [accessip] -obsdomain [obsdomain] -aomvpcepurl [aomvpcepurl] -ltsvpcepurl [ltsvpcepurl]
      
    • V3.3.54.0 and later
      1
      curl https://icagent-{region}.{obsdomain}/ICAgent_linux/apm_agent_install.sh > apm_agent_install.sh && REGION=[region] bash apm_agent_install.sh -ak {input_your_ak} -sk {input_your_sk} -region [region] -projectid [projectid] -accessip [accessip] -obsdomain [obsdomain] -aomvpcepurl [aomvpcepurl] -ltsvpcepurl [ltsvpcepurl]
      

  3. Install the ICAgent in the bastion host system.

    1. Log in to your bastion host system.
    2. Choose System > System Config > Outgoing.
    3. On the displayed page, locate the LTS Config area and click Edit.
    4. Click to enable the LTS service, and enter the command processed in 2 in the Install Agent text box.
      Figure 2 Example for V3.3.54.0 and later
    5. Click OK.

      You can click Go to the task center in the displayed dialog box to view the task progress and status in the task center.

Follow-up Operations

After you complete the configuration, perform the following operations on Log Tank Service (LTS):

  1. Create an LTS host group and add the bastion host to the LTS host group. For details, see Managing Host Groups.
  2. Configure a log path for the bastion host. After LTS is enabled for a bastion host, the log path is /opt/lts_log. For details, see Ingesting ECS Text Logs to LTS