Getting logs for tomorrow

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
hcltech
Posts: 31
Joined: Wed Aug 21, 2019 10:37 am

Getting logs for tomorrow

Post by hcltech »

In my indicies I am showing some for tomorrow. I have done a query but I am not showing anything from those queries. Can anyone help me with this? I know I had this issue before but when i did a search then it showed me what had a wrong date and I was able to fix it.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Getting logs for tomorrow

Post by cdienger »

Running the below from the command line should help you track down the hosts. Make sure to adjust the index name(logstash-2020.05.28) to whichever day you need to search:

Code: Select all

curl -XGET 'http://localhost:9200/logstash-2020.05.28/_search?pretty' -d ' { "aggs" : { "hosts" : { "terms" : { "field" : "host.raw" } } } } '
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked