Logstash service will not stay on
Logstash service will not stay on
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
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
How much RAM did you give the machine?
What does /var/log/logstash/logstash.log say?
What does /var/log/logstash/logstash.log say?
Former Nagios Employee.
me.
me.
Re: Logstash service will not stay on
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
That's concerning..
Output of this command? ls -l /usr/local/nagioslogserver/logstash/etc
Output of this command? ls -l /usr/local/nagioslogserver/logstash/etc
Former Nagios Employee.
me.
me.
Re: Logstash service will not stay on
Here is the output:
drwx-w---. 2 nagios nagios 4096 Mar 24 12:26 conf.d
drwx-w---. 2 nagios nagios 4096 Mar 24 12:26 conf.d
Re: Logstash service will not stay on
Nothing is in there.
Re: Logstash service will not stay on
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:
(try running an Apply Configuration)
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
Code: Select all
tail /var/log/secure
Re: Logstash service will not stay on
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
Can you please post the output of the commands I listed above?