When the server group is configured, LogListener may have an exception, such as disconnection from the CLS server and log upload failure. In this case, the server group is exceptional, as shown below:
These troubleshooting steps only apply to LogListener 2.2.4 or later. If you’re using an earlier version, see Troubleshooting Earlier LogListener Versions.
This tool helps you quickly check the LogListener operation, heartbeat and configuration.
Run the following CLI commands.
The following output indicates that LogListener is running properly.
If the result returns “[ERROR] loglistener is not running” as shown in the following figure, it indicates that LogListener is not started. Run the
/etc/init.d/loglistenerd start command to start it. For more information about the operation commands, see Using LogListener.
If the result returns “[ERROR] check loglistener heareat fail” as shown in the following figure, it indicates that LogListener has a heartbeat exception.
Many causes can lead to LogListener heartbeat exception. Possible causes include:
telnet <cls domain name> 80
Check the network connectivity. For more information about the CLS domain name, see Available Regions.
To check the LogListener key, access the LogListener installation directory and run the following command.
grep secret etc/loglistener.conf
Check that the IP address added to the server group is the one configured on LogListener during installation. Run the following command to check the IP address configured on LogListener.
grep group_ip etc/loglistener.conf
Log in to the CLS Console, and select Server Group on the left sidebar. On the Server Group Management page, view and verify that the IP address of the server group is the same as that configured on LogListener.