1.4.0 install logstash crashing [SOLVED]

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Dnet8
Posts: 14
Joined: Tue Mar 03, 2015 9:24 am

1.4.0 install logstash crashing [SOLVED]

Post 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? :)
You do not have the required permissions to view the files attached to this post.
Last edited by Dnet8 on Thu Jan 07, 2016 7:54 am, edited 1 time in total.
Dnet8
Posts: 14
Joined: Tue Mar 03, 2015 9:24 am

Re: 1.4.0 install logstash crashing

Post 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 ^_^
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: 1.4.0 install logstash crashing [SOLVED]

Post 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?
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.
Dnet8
Posts: 14
Joined: Tue Mar 03, 2015 9:24 am

Re: 1.4.0 install logstash crashing [SOLVED]

Post by Dnet8 »

Thank you!

Yes, close it :)
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: 1.4.0 install logstash crashing [SOLVED]

Post by jolson »

Will do, thanks!
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