Help Center> Log Tank Service> Getting Started> Step 2: Installing ICAgent
Updated on 2023-07-19 GMT+08:00

Step 2: Installing ICAgent

ICAgent is the log collection tool of LTS. Install ICAgent on a host from which you want to collect logs.

If ICAgent has been installed on the host when you use other cloud services, skip the installation.

Prerequisites

Before installing ICAgent, ensure that the time and time zone of your local browser are consistent with those of the host.

Installing ICAgent

  1. Log in to the LTS console and choose Host Management in the navigation pane.

  2. Click Install ICAgent in the upper right corner.

    Figure 1 Installing ICAgent

  3. Set OS to Linux.
  4. Set Installation Mode to Obtain AK/SK.

    Ensure that the public account and AK/SK will not be deleted or disabled. If the AK/SK is deleted, the ICAgent cannot report data to LTS.

    The Access Key ID/Secret Access Key (AK/SK) can be obtained on the My Credentials page. The procedure is as follows:

    1. Hover the mouse pointer over the username in the upper right corner of the page and select My Credentials.
    2. On the My Credentials page, choose Access Keys in the navigation pane on the left.
    3. Click Create Access Key and enter a description.

      Up to 2 access keys can be created for each user. An access key can be downloaded only right after it is created. If the Create Access Key button is grayed out, delete an access key first before creating one.

    4. Click OK, download the AK/SK, and keep it secure.

  5. Click Copy Command to copy the ICAgent installation command.
  6. Log in as user root to the host (for example, by using a remote login tool such as PuTTY). Run the copied command, and enter the obtained AK/SK pair to install ICAgent.

    When the message ICAgent install success is displayed, ICAgent has been installed in the /opt/oss/servicemgr/ directory of the host. You can then view the ICAgent status on the Hosts tab of the Host Management page on the LTS console.