Log Service manages all the Elastic Compute Service (ECS) instances whose logs need to be collected by using the Logtail client in the form of machine groups. You can go to the Machine Groups page by clicking a project name on the Project List page and then clicking LogHub - Collect > Logtail Machine Group in the left-side navigation pane on the Logstore List page. You can create, modify, and delete a machine group, view the machine group list and status, manage the configurations, and use the machine group identification in the Log Service console.

Create a machine group

You can define a machine group by using:

For how to create a machine group, see Create a machine group with an IP address as its identifier.

View machine group list

  1. Log on to the Log Service console.
  2. On the Logstore List page, click Logtail Machine Group in the left-side navigation pane. The Machine Groups page appears.

    View all of the machine groups in the project.

    Figure 1. View a list of machine groups


Modify a machine group

After creating a machine group, you can adjust the ECS instances in the machine group as per your needs.

Note The machine group name cannot be modified after the machine group is created.
  1. Log on to the Log Service console.
  2. On the Logstore List page, click Logtail Machine Group in the left-side navigation pane. The Machine Groups page appears.

    All machine groups under the project are displayed.

  3. Click Modify at the right of the machine group.
  4. Modify the configurations and then click Confirm.
    Note The machine group name cannot be modified.
Figure 2. Modify a Machine Group


View status

To verify that the Logtail client is successfully installed on all ECS instances in a machine group, view the heartbeat status of the Logtail client.
Note After a machine is added to a machine group, the change to the hearbeat status of the machine group takes about two minutes to take effect. Then, you can view the hearbeat status.
  1. Log on to the Log Service console.
  2. On the Project List page, click the project name. On the Logstore List page, click LogHub - Collect > Logtail Machine Group in the left-side navigation pane. The Machine Groups page appears.
  3. Find the target machine group, and then click Machine Status.
    • If the Logtail client is installed on each ECS instance, and Logtail can normally communicate with Log Service, the heartbeat status is displayed as OK.
    • If Logtail cannot communicate with Log Service, the heartbeat status is displayed as FAIL. Furthermore, if the heartbeat status retains as FAIL, troubleshoot the exception by following the prompted messages on the page and the instructions provided by What do I do if a Logtail machine has no heartbeat?. If the problem persists, open a tick for support.
    Figure 3. View the machine group status


Managing configurations

Log Service manages all the servers whose logs need to be collected by using machine groups. One important management item is the collection configuration of the Logtail client. For more information, see Collect text logs and Syslog. You can apply or delete a Logtail configuration to/from a machine group to decide what logs are collected, how the logs are parsed, and to which Logstore the logs are sent by the Logtail on each ECS instance.

  1. Log on to the Log Service console.
  2. On the Logstore List page, click Logtail Machine Group in the left-side navigation pane. The Machine Groups page appears.
  3. Click Config at the right of the machine group.
  4. Select the Logtail configuration and click Add or Remove to add or remove the configuration to/from the machine group.

    After a Logtail configuration is added, it is issued to the Logtail client on each ECS instance in the machine group. After a Logtail configuration is removed, it is removed from the Logtail client.

Figure 4. Managing Machine Group configurations


Delete a machine group

  1. Log on to the Log Service console.
  2. On the Project List page, click the project name. On the Logstore List page, click LogHub - Collect > Logtail Machine Group in the left-side navigation pane. The Machine Groups page appears.
  3. Click Delete at the right of the machine group.
  4. Click Confirm in the appeared dialog box.
    Figure 5. Delete a machine group