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 .
Log Collector is not reachable
This article lists the causes and gives the corresponding resolution.
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 ."
The following error messages are seen in the /var/log/jboss/servers/server1/server.log file:
/var/log/jboss/servers/server1/server.log
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
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.
Log in to the Log Collector node by using root user credentials.
root
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
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.
x.x.x.x
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.
After performing the above steps, if you still see the error, contact JTAC Support .
2019-01-15: Logs example in Symptoms section trimmed and other minor, non-technical modifications made