Logstash collector auto stop
Logstash collector auto stop
Hi,
I keep having the logstash collector auto stopping.
This is part of the cluster and is working fine until it suddenly got this error.
{:timestamp=>"2015-02-02T06:10:03.485000-0500", :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=>"2015-02-02T06:10:03.509000-0500", :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."}
Any help?
thanks.
I keep having the logstash collector auto stopping.
This is part of the cluster and is working fine until it suddenly got this error.
{:timestamp=>"2015-02-02T06:10:03.485000-0500", :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=>"2015-02-02T06:10:03.509000-0500", :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."}
Any help?
thanks.
Re: Logstash collector auto stop
Let's take a look at that directory. Please run the following command as root from the Nagios server command line and post the results:
Code: Select all
ls -ld /usr/local/nagioslogserver/logstash/etc/conf.d/
ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/
Former Nagios employee
Re: Logstash collector auto stop
[root@sgpnagioslog1 ~]# ls -ld /usr/local/nagioslogserver/logstash/etc/conf.d/
drwxrwxr-x. 2 nagios nagios 4096 Feb 2 15:39 /usr/local/nagioslogserver/logstash/etc/conf.d/
[root@sgpnagioslog1 ~]# ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/
total 12
-rw-r--r-- 1 apache apache 218 Feb 2 15:39 000_inputs.conf
-rw-r--r-- 1 apache apache 978 Feb 2 15:39 500_filters.conf
-rw-r--r-- 1 apache apache 493 Feb 2 15:39 999_outputs.conf
drwxrwxr-x. 2 nagios nagios 4096 Feb 2 15:39 /usr/local/nagioslogserver/logstash/etc/conf.d/
[root@sgpnagioslog1 ~]# ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/
total 12
-rw-r--r-- 1 apache apache 218 Feb 2 15:39 000_inputs.conf
-rw-r--r-- 1 apache apache 978 Feb 2 15:39 500_filters.conf
-rw-r--r-- 1 apache apache 493 Feb 2 15:39 999_outputs.conf
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Logstash collector auto stop
And to make sure the nagios user can read them
If you get the list, you should be able to restart logstash
Code: Select all
su nagios -c 'ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/'Code: Select all
service logstash restartRe: Logstash collector auto stop
Not sure did I do wrong, after I ran the command, below is the outputscottwilkerson wrote:And to make sure the nagios user can read themIf you get the list, you should be able to restart logstashCode: Select all
su nagios -c 'ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/'Code: Select all
service logstash restart
"
[root@sgpnagioslog1 ~]# su nagios -c 'ls -l /usr/local/nagioslogserver/logstash/etc/conf.d/'
total 12
-rw-r--r-- 1 apache apache 218 Feb 2 15:39 000_inputs.conf
-rw-r--r-- 1 apache apache 978 Feb 2 15:39 500_filters.conf
-rw-r--r-- 1 apache apache 493 Feb 2 15:39 999_outputs.conf
"
For the 2nd cluster instance, it has same conf.d output but the logstash is not stopping.
"
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Logstash collector auto stop
On the instance that had it stopped, could you PM me the log from
/var/log/logstash/logstash.log
Thanks
/var/log/logstash/logstash.log
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Logstash collector auto stop
The file you sent just shows on the 2nd the configs somehow couldn't be read.
Being they are there now lets just start logstash
Being they are there now lets just start logstash
Code: Select all
service logstash startRe: Logstash collector auto stop
Hi,scottwilkerson wrote:The file you sent just shows on the 2nd the configs somehow couldn't be read.
Being they are there now lets just start logstashCode: Select all
service logstash start
Even after starting the logstash service, the log file is still empty for the faulty cluster instance.
Do you need the working cluster instance?
Re: Logstash collector auto stop
Have you made any changes to the non-working machine? Is selinux enabled or did you change any passwords or system user information?
Former Nagios employee
Re: Logstash collector auto stop
Hi, only the root password is changed.tmcdonald wrote:Have you made any changes to the non-working machine? Is selinux enabled or did you change any passwords or system user information?
Anyway, we have decided to remove the existing 2 cluster instance and set it up from fresh again.
Thanks.