Description

After deploying Junos Space 15.2 with Log Collector, the following message is observed from Security Director > Monitor > Events & Logs: Log Collector is not reachable .

This article lists the causes and gives the corresponding resolution.

 

Symptoms

After successfully adding the Log Collector node to Junos Space 15.2, going to Monitor > Events & Logs shows the message, " Log Collector is not reachable ."

 

alt

 

The following error messages are seen in the /var/log/jboss/servers/server1/server.log file:

2016-03-31 13:16:07,067 ERROR [net.juniper.jnap.ecm.logcollector.ejb.LogCollectorQueryBean] (ajp-space-005056b10e7d/172.19.35.220:8009-8) Server URL http://localhost:9200/_cluster/stats
2016-03-31 13:16:07,069 ERROR [net.juniper.jnap.ecm.logcollector.ejb.LogCollectorQueryBean] (ajp-space-005056b10e7d/172.19.35.220:8009-8) Exception happened with error code 0
2016-03-31 13:16:07,070 ERROR [net.juniper.jnap.ecm.logdata.rest.v1.LogDataCollectorRestImpl] (ajp-space-005056b10e7d/172.19.35.220:8009-8) Log Collector Status 105
2016-03-31 13:16:07,062 ERROR [net.juniper.jnap.ecm.logcollector.LogCollectorRequestExecutor] (ajp-space-005056b10e7d/172.19.35.220:8009-4) Error occured Connect to localhost:9200 [localhost/127.0.0.1] failed: Connection refused

 

Solution

Note: The following methods are intended for the specific scenario when the Log Collector receives a syslog message on port 514 and if the "Log Collector is not reachable" error is encountered while displaying the logs.

  1. The Elasticsearch service on the Log Collector node might be off. In this case, check the service with the following steps and start the service if it is not running.
  • Log in to the Log Collector node by using root user credentials.

root@LOG-COLLECTOR] /etc/init.d/elasticsearch status
process is not running..

[root@LOG-COLLECTOR] /etc/init.d/elasticsearch start

[root@LOG-COLLECTOR]# /etc/init.d/elasticsearch status
process is running..
  • Check the status of port 9200 on Log Collector node. It should be in LISTEN state:

[root@localhost ~]# netstat -an | grep :9200
tcp        0      0                    :::9200                   :::* LISTEN
 
  1. If Junos Space cannot communicate with the Log Collector on port 9200 (connection refused messages in server.log), check whether there is a firewall in between that is blocking traffic from Junos Space to the Log Collector on port 9200.
  • On Junos Space Command Line Interface (CLI), check connection status by using the following command:

#telnet <LC_IP> <port> (This must be successful.)

Example

#telnet x.x.x.x 9200

where x.x.x.x is Log Collector IP address.

 
  1. There may be an incorrect setting in the Log Director application. In this case, check the following settings:
  • On the Junos Space Platform UI, select Administration > Applications. The Applications page is displayed with the list of installed Junos Space applications.

  • Select Log Director, then select Modify Application Settings from the Actions menu or the shortcut menu. Uncheck "Integrated Log Collector On Space Server." Note: This check box is unchecked by default.

 

alt

 

After performing the above steps, if you still see the error, contact JTAC Support .

 

Modification History

2019-01-15: Logs example in Symptoms section trimmed and other minor, non-technical modifications made