Stopped Receiving Logs

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Stopped Receiving Logs

Post by blariv »

we have a 2 node cluster of nls. all has been working but logs stopped showing up from all servers pointing to it about a week ago. just wondering where I can look to see what is happening.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Stopped Receiving Logs

Post by jolson »

Is logstash running on your instances? Run the following on both nodes:

Code: Select all

service logstash status
If logstash is stopped, you'll need to restart it:

Code: Select all

service logstash start
If that's not what is causing the issue, I would like to see the output of the following logs:

Code: Select all

cat /var/log/logstash/logstash.log
tail -n200 /var/log/elasticsearch/*.log
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Stopped Receiving Logs

Post by blariv »

thanks for the quick reply.

on my primary server I get no output from
cat /var/log/logstash/logstash.log

the rest are attached
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Stopped Receiving Logs

Post by jolson »

Is elasticsearch running on the instance that you checked?

Code: Select all

service elasticsearch status
It's possible that elasticsearch was killed due to 'out of memory' problems.

Your logstash output also looks a little strange. Try running 'Apply Config' from the Web GUI and see if that helps. If it does not, I'd like to see the output of the following from all of your instances:

Code: Select all

cat /usr/local/nagioslogserver/var/cluster_hosts
cat /usr/local/nagioslogserver/var/cluster_uuid
cat /usr/local/nagioslogserver/logstash/etc/conf.d/999_outputs.conf
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Stopped Receiving Logs

Post by blariv »

that worked thanks!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Stopped Receiving Logs

Post by jolson »

No problem! :geek: I assume the Apply Config worked for you? Is this thread good to close?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Stopped Receiving Logs

Post by blariv »

that is what solved it, you can close.
Locked