We are having an issue where logs stop being received in NLS. I have 3 machines sending syslog logs to a syslog input in NLS. This works fine.
The issue is that eventually, these logs will stop appearing in NLS. No more logs are received, and NLS will list these hosts in the "Not Sending" section on the Unique Hosts page.
Additionally, I have noticed that logs stop being received every day at exactly 8pm.
I have also been able to fix the issue. I found that after the issues occurs, if the current index is deleted, all of the logs will immediately start being collected again.
Looking at the Logstash log, I see the the same error, repeated for every event from these machines. I have attached a sample error line from the log. I believe that the significant part is:
Code: Select all
response=>{"create"=>{"_index"=>"logstash-2019.09.18", "_type"=>"syslog", "_id"=>"AW1E4WbF-7bFpjTmq8fG", "status"=>400, "error"=>"MapperParsingException[failed to parse [timestamp]]; nested: MapperParsingException[failed to parse date field [Sep 18 10:58:05], tried both date format [dateOptionalTime], and timestamp number with locale []]; nested: IllegalArgumentException[Invalid format: \"Sep 18 10:58:05\"]; "}}
While searching for solutions, I found a similar issue in the Nagios Support Forum. That post indicates that the index has the wrong date format? If this is the case, how should that be addressed?
Would you have any advice for how to solve this issue? I would be happy to provide any additional information.
Thank you for your assistance.