Page 1 of 3

Logstash service will not stay on

Posted: Thu Mar 24, 2016 12:57 pm
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

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 2:17 pm
by hsmith
How much RAM did you give the machine?

What does /var/log/logstash/logstash.log say?

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 2:37 pm
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.

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 3:04 pm
by hsmith
That's concerning..

Output of this command? ls -l /usr/local/nagioslogserver/logstash/etc

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 3:07 pm
by cgutierr
Here is the output:

drwx-w---. 2 nagios nagios 4096 Mar 24 12:26 conf.d

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 3:13 pm
by hsmith
What's in the conf.d directory?

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 3:18 pm
by cgutierr
Nothing is in there.

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 4:09 pm
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

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 4:24 pm
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.

Re: Logstash service will not stay on

Posted: Thu Mar 24, 2016 4:35 pm
by jolson
Can you please post the output of the commands I listed above?