/var/log/logstash errors

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
cjsGSB
Posts: 18
Joined: Mon Apr 08, 2019 11:34 am

/var/log/logstash errors

Post by cjsGSB »

Running Nagios Log Server 2.0.7 on RHEL 6.9 getting with 2 instances. Keep getting these errors every 5 seconds.
Is this an issue that should be addressed - thanks
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: /var/log/logstash errors

Post by mbellerue »

Looks like it's potentially trying to start up another instance of logstash. The very first thing I would do is stop logstash, wait a few seconds, and then check the status of the logstash service. If it came up again, then there was a second instance waiting for port 514 to be free.

Code: Select all

service logstash stop
...wait about 10 seconds...
service logstash status
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
cjsGSB
Posts: 18
Joined: Mon Apr 08, 2019 11:34 am

Re: /var/log/logstash errors

Post by cjsGSB »

did those commands on both instances the logstash service remains stopped until I restart it.
It does not look like another instance of logstash is trying to restart
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: /var/log/logstash errors

Post by SteveBeauchemin »

I once had a similar issue - the port was in use and I could not make it available. Even after reboot.

Turned out to be a 3rd part app on the system that failed and was flooding my local syslog.

When I killed off that unrelated app, removed it from cron, stuff started to work again.

Just in case you have other stuff running there. Maybe look at the local messages file.

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: /var/log/logstash errors

Post by mbellerue »

That's a good point, Steve.

cjsGSB, could you stop logstash, and then run a netstat to see if port 514 is in use?

Code: Select all

netstat -a | grep 514
The other thing that could be happening is that Log Server isn't set up to be able to listen on privileged ports. If you haven't seen it already, take a look at this document.

https://assets.nagios.com/downloads/nag ... Server.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked