Logstash service will not stay on

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
cgutierr
Posts: 59
Joined: Tue Mar 08, 2016 1:09 pm

Logstash service will not stay on

Post by cgutierr »

Hello,


I am evaluating Nagios Log Server for our environment. I have manually installed NLS including the Python packages as we are disconnected from the net. After installation, I have an issue with the logstash service not staying on. The service will start but will stop after 5 or so seconds. Any help will be greatly appreciated. Thanks!


V/R,


Christopher Gutierrez
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logstash service will not stay on

Post by hsmith »

How much RAM did you give the machine?

What does /var/log/logstash/logstash.log say?
Former Nagios Employee.
me.
cgutierr
Posts: 59
Joined: Tue Mar 08, 2016 1:09 pm

Re: Logstash service will not stay on

Post by cgutierr »

I gave the VM 4GB of RAM. The logstash.log says that there are no config files found. I have tried to "Apply Configuration" but still no config files.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logstash service will not stay on

Post by hsmith »

That's concerning..

Output of this command? ls -l /usr/local/nagioslogserver/logstash/etc
Former Nagios Employee.
me.
cgutierr
Posts: 59
Joined: Tue Mar 08, 2016 1:09 pm

Re: Logstash service will not stay on

Post by cgutierr »

Here is the output:

drwx-w---. 2 nagios nagios 4096 Mar 24 12:26 conf.d
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logstash service will not stay on

Post by hsmith »

What's in the conf.d directory?
Former Nagios Employee.
me.
cgutierr
Posts: 59
Joined: Tue Mar 08, 2016 1:09 pm

Re: Logstash service will not stay on

Post by cgutierr »

Nothing is in there.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Logstash service will not stay on

Post by jolson »

The config files may not be generating due to potential access problems. Apache needs to generate those files, and cron is the handler that apache uses to do so. Try the following:

Code: Select all

ls -ld /usr/local/nagioslogserver/logstash/etc/conf.d
egrep "nag|apache" /etc/group
egrep "nag|apache" /etc/passwd
chage -l nagios
service crond status
tail /var/log/cron
cat /etc/cron.d/nagioslogserver
(try running an Apply Configuration)

Code: Select all

tail /var/log/secure
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.
cgutierr
Posts: 59
Joined: Tue Mar 08, 2016 1:09 pm

Re: Logstash service will not stay on

Post by cgutierr »

I am still not seeing any config files populate. Now, when I create my own config file using and copying the files in global config, logstash actually starts and stays on but I still do not see any logs that are coming in, even from itself.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Logstash service will not stay on

Post by jolson »

Can you please post the output of the commands I listed above?
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.
Locked