Page 1 of 1

1.4.0 install logstash crashing [SOLVED]

Posted: Thu Jan 07, 2016 6:22 am
by Dnet8
Hi,

I have installed NLS 1.4.0 from the tarball. Everything looks ok, but logstash keeps crashing. Its complaining about missing configuration files:

Code: Select all

{:timestamp=>"2016-01-07T12:15:22.012000+0100", :message=>"Error: No config files found: /usr/local/nagioslogserver/logstash/etc/conf.d/*\nCan you make sure this path is a logstash config file?"}
{:timestamp=>"2016-01-07T12:15:22.017000+0100", :message=>"You may be interested in the '--configtest' flag which you can\nuse to validate logstash's configuration before you choose\nto restart a running system."}
The directory is indeed empty:

Code: Select all

[root@opermon ~]# ls -ltr /usr/local/nagioslogserver/logstash/etc/conf.d/
total 0
[root@opermon ~]#
I have attached the installation log file for further details.

Any ideas? :)

Re: 1.4.0 install logstash crashing

Posted: Thu Jan 07, 2016 7:54 am
by Dnet8
Solved!

Turns out I had been way to clever for my own good! Botched the first installation, and figured all I needed to do to start again was to delete /usr/local/nagioslogserver. This was not sufficient. The webroot also had to be deleted for the installation script to work properly.

Summary:

Code: Select all

rm -fr /usr/local/nagioslogserver
rm -fr /var/www/html/nagioslogserver
And then re-run the fullinstall script.

Everything is green and working perfectly now ^_^

Re: 1.4.0 install logstash crashing [SOLVED]

Posted: Thu Jan 07, 2016 10:13 am
by jolson
Happy to hear it! For future reference, this is the official uninstall procedure as of right now (subject to change):

Code: Select all

service logstash stop
service elasticsearch stop
yum erase httpd
rm -rf /usr/local/nagioslogserver
rm -rf /var/www/html/nagioslogserver
rm /etc/rc.d/init.d/elasticsearch
rm /etc/rc.d/init.d/logstash
rm /etc/rsyslog.d/nagioslogserver.conf
rm /etc/cron.d/nagioslogserver
pip uninstall elasticsearch-curator==1.2.2
service crond restart
May I close this case?

Re: 1.4.0 install logstash crashing [SOLVED]

Posted: Fri Jan 08, 2016 3:48 am
by Dnet8
Thank you!

Yes, close it :)

Re: 1.4.0 install logstash crashing [SOLVED]

Posted: Fri Jan 08, 2016 10:19 am
by jolson
Will do, thanks!