Nagios Log server logstash behaving crazy

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Nagios Log server logstash behaving crazy

Post by anish »

Hi Team ,

There is some problem with the Nagios log server . Suddenly was able to see indexes for older dates like logstash -2014.10.05 .We didn't even built the Nagios Log server in 2014. Please check the screen shot attached . What could be the reason for the indexes to appear in the Nagios Log console for the older dates.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Log server logstash behaving crazy

Post by cdienger »

Is the date set properly on the machine or has it been modified recently? What is the output of:

Code: Select all

date +%F
date %s
also check the the index names under /usr/local/nagioslogserver/elasticsearch/data/*CLUSTERID*/nodes/0/indices. Are there any indices in there with a 2014 timestamp?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Nagios Log server logstash behaving crazy

Post by anish »

Please find the output

[root@SESKLNGLSIPD01 ~]# date +%F
2017-06-16
[root@SESKLNGLSIPD01 ~]# date %s
date: invalid date `%s'

Checked the under /usr/local/nagioslogserver/elasticsearch/data/*CLUSTERID*/nodes/0/indices ,,I can see 2014 dated indices and logstash-2014.06.16 was created today . May i know the reason behind.


drwxr-xr-x 8 nagios users 4096 Oct 20 2016 kibana-int
drwxr-xr-x 8 nagios users 4096 Jun 15 10:36 logstash-2014.06.15
drwxr-xr-x 8 nagios users 4096 Jun 15 20:00 logstash-2014.06.16
drwxr-xr-x 8 nagios users 4096 Jun 10 14:01 logstash-2017.06.11
drwxr-xr-x 8 nagios users 4096 Jun 14 09:56 logstash-2017.06.12
drwxr-xr-x 8 nagios users 4096 Jun 14 14:56 logstash-2017.06.13
drwxr-xr-x 8 nagios users 4096 Jun 14 09:11 logstash-2017.06.14
drwxr-xr-x 8 nagios users 4096 Jun 14 14:58 logstash-2017.06.15
drwxr-xr-x 8 nagios users 4096 Jun 15 14:01 logstash-2017.06.16
drwxr-xr-x 4 nagios users 4096 Oct 20 2016 nagioslogserver
drwxr-xr-x 8 nagios users 4096 Mar 28 09:54 nagioslogserver_log
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Log server logstash behaving crazy

Post by cdienger »

Hi Anish,

Can you PM me a profile or otherwise make it available somewhere for me to download? If you'd like to password protect it, please PM me the password. I'd like to see what you have setup for logstash filters. I'd also like to get copies of the files in /var/log/elasticsearch and /var/log/logstash.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Nagios Log server logstash behaving crazy

Post by anish »

Please find the attachment regarding Nagios Log Profile
You do not have the required permissions to view the files attached to this post.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Nagios Log server logstash behaving crazy

Post by anish »

Please find the attachments regarding the copies of the files in /var/log/elasticsearch
You do not have the required permissions to view the files attached to this post.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Nagios Log server logstash behaving crazy

Post by anish »

Please find the attachments regarding the copies of the files in /var/log/logstash
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Log server logstash behaving crazy

Post by cdienger »

Some of the data was removed or not collected in the profile that I was hoping to verify. The main part being the output filter. Can you PM that to me along with the other files? I'd also like to see the output of:

Code: Select all

curl -XGET 'http://localhost:9200/_search/template?pretty'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: Nagios Log server logstash behaving crazy

Post by anish »

please find the output
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Log server logstash behaving crazy

Post by cdienger »

The 2014 indices don't appear to contain much(a few kb). Go ahead and delete them and then restart the service with:

Code: Select all

service elasticsearch restart
Restart the service on one of the nodes and after it comes back up, restart the service on the other node.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked