Help Center> Log Tank Service> FAQs> Log Collection> How Can I Use the New Edition of Log Ingestion?
Updated on 2023-07-14 GMT+08:00

How Can I Use the New Edition of Log Ingestion?

If you want to ingest logs from hosts to log streams, you would have to go to each log stream and configure ingestion one by one for each host with the old edition of log ingestion. This could be time-consuming when you have a large number of log streams and hosts and maintenance could be very burdensome. That is why LTS introduces the concept of host groups. Log ingestion configurations are now associated with host groups instead of hosts. When you add hosts to a host group, the hosts will automatically inherit the ingestion configurations associated with the host group. Configuring log ingestion becomes quick and efficient.

When using the new edition of log ingestion, you need to first create host groups, sort hosts into different host groups based on your requirements, and associate ingestion configurations with host groups.

Procedure

The following describes the procedure of using the new edition of log ingestion.

Figure 1 Procedure of using the new edition of log ingestion
  1. Create a host group.

    1. Log in to the LTS console and choose Host Management in the navigation pane.
    2. Click Create Host Group in the upper right corner.
    3. In the displayed slide-out panel, enter a host group name and select a host OS (Linux or Windows).
    4. In the host list, select one or more hosts to add to the group and click OK.

  2. Select a log group and log stream.

    1. On the LTS console, choose Log Ingestion in the navigation pane.
    2. Click Elastic Cloud Server (ECS) to configure log ingestion.
    3. On the Select Log Stream stage, select a log group and log stream to which logs will be sent, and click Next: Select Host Group.

  3. Select the host group.

    Select the created host group and click Next: Configure Collection.

  4. Import an old-edition ingestion configuration.

    On the Configure Collection stage, enter a collection configuration name, and click Import Old-Edition Configuration next to the text box. In the displayed slide-out panel, select an old-edition configuration to import and click OK. After the import is complete, click Submit.

  5. Delete the old-edition ingestion configuration.

    Go to the details page of the corresponding log stream, choose Log Ingestion > Host, and delete the old-edition ingestion configuration imported in 4.
    • A collection path can be configured only once. It means that you cannot add the same host path to more than one log stream. Otherwise, log ingestion may be abnormal.
    • You must delete the old-edition ingestion configuration after import to ensure that logs can be reported to the new edition of log ingestion.

Grouping Hosts

A host group can associate with one or more ingestion configurations and all the configurations will be applied to each host in the host group. When you sort hosts to host groups, consider the host configurations, such as which paths of the hosts you want to collect logs from. A host can be added to multiple host groups.

Figure 2 Grouping hosts

Log Collection FAQs

more