This ariticle introduce how to fix the problem when app_info.json heartbeats fail to be detected because no IP address is specified in the Logtail Machine Group.
Problem description
Failed to configure Machine Group for heartbeat detection in the log service console. The IP address in the file is empty.
Causes
Inside the server app_info.json
the IP address of the file is obtained as follows:
Get first file the IP address of the parsing records corresponding to the host name in.
If file there is no parsing records in the host name, and the IP address of the server network interface controller is obtained.
If Machine Group server does not have the first network interface controller (NIC), filethere is no parsing records for the host name, then the IP field in the file is empty.
Solution
By remote connection log on to the Linux instance.
Run the following command to obtain the hostname of the instance:
hostname
Edit file, add the parsing records corresponding to the host name, save and exit.