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
- 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:
1set +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;
- 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
1curl 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
1curl 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]
- Install the ICAgent in the bastion host system.
- Log in to your bastion host system.
- Choose System > System Config > Outgoing.
- On the displayed page, locate the LTS Config area and click Edit.
- 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
- 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):
- Create an LTS host group and add the bastion host to the LTS host group. For details, see Managing Host Groups.
- 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
