Logtail helps Log Service users easily collect logs from ECS instances by using the Log Service console. After you install Logtail, you must create a log collection configuration for it. You can create and modify Logtail configurations for Logstores in the Logstore list.

Create a Logtail configuration

For information about how to create a Logtail configuration in the Log Service console, see Configure text log collection and Syslog.

View Logtail configurations

  1. Log on to the Log Service console.
  2. In the Projects section, click a specific project name.
  3. On the Logstores tab in the left-side navigation pane, click the closing angle bracket (>) next to the name of a specific Logstore and choose Data Import > Logtail Configurations. Each item under Logtail Configurations indicates a Logtail collection configuration.
    Note A log file can be collected by using only one Logtail configuration.

Modify Logtail configurations

  1. Log on to the Log Service console.
  2. In the Projects section, click a specific project name.
  3. On the Logstores tab in the left-side navigation pane, click the closing angle bracket (>) next to the name of a specific Logstore and choose Data Import > Logtail Configurations.
  4. Under Logtail Configurations, click the name of the Logtail collection configuration that you want to modify. On the Logtail Config page that appears, click Modify.

    You can change the log collection mode and specify the server group to which the configuration is applied. The process of modifying a Logtail configuration is the same as the process of creating a Logtail configuration.

Delete a Logtail configuration

  1. Log on to the Log Service console.
  2. In the Projects section, click a specific project name.
  3. On the Logstores tab in the left-side navigation pane, click the closing angle bracket (>) next to the name of a specific Logstore and choose Data Import > Logtail Configurations.
  4. Find the Logtail configuration that you want to delete, click the Logtail configuration management icon next to the name of the configuration, and then select Delete.
    After the configuration is deleted, it is unbound from the server group to which it is applied and Logtail no longer collects logs specified by this configuration.
    Note Before you delete a Logstore, you must delete all Logtail configurations for the Logstore.