All Products
Search
Document Center

Simple Log Service:What do I do if the IP address is empty in the app_info.json file of Logtail?

Last Updated:Mar 28, 2023

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:

  1. Get first file the IP address of the parsing records corresponding to the host name in.

  2. If 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), filethere is no parsing records for the host name, then 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 file, add the parsing records corresponding to the host name, save and exit.