All Products
Search
Document Center

app_info.json heartbeats fail to be detected because no IP address is specified in the Logtail Machine Group

Last Updated: Sep 28, 2020

Problem description

Failed to configure Machine Group for heartbeat detection in the log service console. app_info.json 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:

  1. Get first /etc/hosts file the IP address of the parsing records corresponding to the host name in.
  2. If/etc/hosts file there is no parsing records in the host name, and the IP address of the server network interface controller is obtained.
  3. If Machine Group server does not have the first network interface controller (NIC),/etc/hosts file there is no parsing records for the host name, then app_info.json the IP field in the file is empty.

Solution

  1. By remote connection log on to the Linux instance.
  2. Run the following command to obtain the hostname of the instance:
    hostname
  3. Edit /etc/hosts file, add the parsing records corresponding to the host name, save and exit.

Scope

  • Log Service for WAF