The Logtail client provides an easy way to collect logs from Elastic Compute Service (ECS) instances in the Log Service console. After installing the Logtail client, you must create a log collection configuration for the Logtail client. For how to install Logtail, see Linux  and Install Logtail on Windows. You can create and modify the Logtail configurations of LogStores in the LogStore list.

Create a Logtail configuration

For how to create a Logtail configuration in the Log Service console, see  Collect text logs and Syslog.

View Logtail configuration list

  1. Log on to the Log Service console.
  2. On the Project List page, click the project name, to enter the Logstore List page.
  3. On the Logstore List  page, click Manage at the right of the Logstore. Logtail Configuration List page appears. 
    All the configurations of this Logstore are displayed on the page, including the configuration name, data sources, and configuration details. When the data source is Text,  the file path and file name are displayed under Configuration Details.
    Figure 1. Logtail configuration list


    Note
    A file can be collected by only one configuration.

Modify a Logtail configuration

  1. Log on to the Log Service console.
  2. On the Project List page, click the project name.
  3. On the Logstore List page, click Manage  at the right of the Logstore. The Logtail Configuration List page appears.
  4. Click the name of the Logtail configuration to be modified.

    You can modify the log collection mode and specify the machine group to which the modified mode is applied. The configuration modification process is the same as the configuration creation process.

Delete a Logtail configuration

  1. Log on to the Log Service console.
  2. On the Project List page, click the project name.
  3. On the Logstore List page, click Manage at the right of the Logstore. The Logtail Configuration List page appears.
  4. Click Remove at the right of the Logtail configuration to be deleted.

    After the configuration is deleted successfully, it is unbound from the machine groups that applied this configuration and Logtail stops collecting the log files of the deleted configuration.

    Note
    You must delete all the Logtail configurations in a Logstore before deleting the Logstore.