You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Host group
Create host group (Host identification)
Copy page
Download PDF
Create host group (Host identification)
This topic describes how to create a host group with host identifiers.​
Prerequisites​
  • A server is prepared as the log source. If the server is a VolcanoEngine ECS, it must be in the same region as the project.​
  • If you do not enable Volcano ECS, you must install LogCollector of version 1.0.3 or later versions on the server before adding multiple Volcano ECS servers to the host group. We recommend that you use the latest version. For download and installation instructions, see Install LogCollector (host machine).​
Notice​
Each Volcano Engine primary account can create up to 200 host groups in each region.​
  • Currently, only Linux servers are supported.​
  • Only LogCollector V1.0.8 and later versions support auto-upgrade. If you need to enable auto-upgrade, make sure all servers that are ready to join host group have the required version installed before you create the host group. Otherwise, LogCollectors that do not meet the version requirements can not be auto-upgraded. For upgrading LogCollector historical versions V1.0.7 and earlier, see Manually upgrade LogCollector.​
  • LogCollector does not support auto-upgrade in container scenarios. If needed, replace the image manually.​
How to configure​
1. Configure host identification (when Volcano ECS is disabled)​
If you need to add a server to a host group with host identification, specify the label parameter during LogCollector initialization on the server and enter a custom identifier.​
Notice​
  • The identifier length must be 2–128 characters. It can include lowercase letters, numbers, hyphens (-), and underscores (_).​
  • Host groups identify different containers by using IP addresses. By default, the IP address is the primary network interface address obtained by LogCollector. To make it easier to manage host groups, you can modify the IP address obtaining policy in LogCollector. For more details, see Set the IP address for the host or container.​
If you do not specify the label parameter during initialization, you need to stop LogCollector first. Then re-run the initialization command with the correct parameter. After that, restart LogCollector. If you need to modify the machine identifier after setting it, you can follow the steps below.​
  1. Stop LogCollector.​
  • ​
    sudo systemctl stop logcollectord.service​
    ​
  1. Re-run the initialization command.​
  • ​
    sudo ./logcollector.sh install --region {region} --endpoint {endpoint} --secret_id {secret_id} --secret_key {secret_key} --label {label} ​
    ​
  1. Start LogCollector.​
  • ​
    sudo systemctl start logcollectord.service​
    ​
2 Create a host group​
  1. Select the region where torch log service is located from the top navigation bar.​
  1. In the left navigation panel, select Resource management > Host Group.​
  1. On the Host group management page, click Create host group.​
  1. In the Create host group dialog box, enter the basic information for the host group, and then click Create.​
  • ​
    Parameters​
    Description​
    Host group name​
    Name of the host group.​
    Host group type​
    The type of host group. Select Host identification.​
    Host identification​
    Enter the host identification you configured on your server.​
    Volcano ECS​
    If enabling Volcano ECS, VolcEngine ECS instances can be added to the current host group. After enabling, you must manually select the ECS instance that needs to be added.​
    • Only supports adding ECS instances with Cloud Assistant installed and both Cloud Assistant and the instance are in Running status.​
    • The system automatically installs LogCollector for selected ECS instances.​
    • ECS instances that have started installing LogCollector cannot be stopped or uninstalled. Proceed with caution.​
    LogCollector service log​
    You can choose whether to enable the LogCollector service log. When enabled, the LogCollector client records information like runtime status and collection progress in real time during operation.​
    For more details, see Service log overview.​
    LogCollector auto upgrade​
    LogCollector V1.0.8 and later versions support automatic upgrades. Once enabled, the log service will run an upgrade check at the specified time each day. If all upgrade criteria are met, LogCollector will upgrade automatically. No manual action is required.​
    For automatic upgrades, we recommend that you set it during off-peak business hours. LogCollector may restart during the upgrade, but no logs will be lost.​
    • Versions before LogCollector V2.3.1: Click the switch to enable or disable the automatic upgrade feature.​
    • Set the automatic upgrade time after enabling the feature.​
    • LogCollector V2.3.1 and later version: After you create a host group, go to the LogCollector management tab on the host group details page to enable this feature. For more information, see View host group.​
    IAM Project​
    Select the IAM project to which the currently created host group belongs from the dropdown list.​
    If you have not created any IAM project or there is no other IAM to select, click Create project to create a new IAM project. If no IAM project is specified, TLS categorizes the host project into the IAM project named default.​
    ​
View host group LogCollector connection status​
The host machine with LogCollector installed regularly reports its heartbeat status to TLS. You can check whether LogCollector and TLS are connected properly based on the heartbeat status. After successfully creating a host group, you can click the host group name on the Host group management page to view the heartbeat status of each server in the host group.​
The Heartbeat status tab displays the IP addresses in the IP column for servers with the same server identifier. Servers within the host group are identified and distinguished by their IP addresses. By default, IP address is the current server address obtained by LogCollector, i.e., the IP address of the first network card.​
You can verify that the number of IP addresses matches the number of servers actually configured with identifiers, and view the heartbeat status of each server.​
  • If the status column shows Normal: TLS has successfully identified this server, and both the server LogCollector and TLS connection status are normal.​
  • If the status column shows Abnormal: some machines in the host group are in abnormal status. To view the IP addresses of servers with heartbeat anomalies, click the host group name.​
Notice​
  • After adding servers to the host group, the server heartbeat status will briefly show as Abnormal until LogCollector successfully reports the heartbeat status to TLS. If the server heartbeat status shows Exception for more than 1 minute, see Machine group heartbeat problem troubleshooting (host) for troubleshooting.​
  • For host groups based on host identification, if you restart a server that is in abnormal status, the IP address of the server will change. TLS will fail to check the heartbeat status via original IP address. Therefore, the abnormal IP address record will remain. In this case, we recommend that you check the number of hosts with normal heartbeat status. If the number matches the actual number of servers, the error message for the abnormal status can be ignored.​
​
Last updated: 2025.12.08 17:17:06