This is a continuation of a previous thread I created. I sent the system profile twice and did not get a response.
In any case, the issue I am having is that log files from a few Linux servers and from a Palo Alto firewall are not showing up in Nagios Log Server.
After further investigation, I found errors for these devices in the Logstash log file. I believe the actual error is:
Code: Select all
:response=>{"create"=>{"_index"=>"logstash-2019.12.13", "_type"=>"syslog", "_id"=>"AW8Ab04im8e-JsUH61
c5", "status"=>400, "error"=>"MapperParsingException[failed to parse [timestamp8601]]; nested: MapperParsingException[
failed to parse date field [2019-12-13 18:04:52.81], tried both date format [dateOptionalTime], and timestamp number w
ith locale []]; nested: IllegalArgumentException[Invalid format: \"2019-12-13 18:04:52.81\" is malformed at \" 18:04:5
2.81\"]; "}}
Code: Select all
syslog {
port => 514
type => 'syslog'
}
syslog {
port => 20514
type => 'syslog'
tags => 'Linux-Max'
}
One thing that was pointed out in the last thread is the use of UTC times. The Linux servers and the Nagios Log Server are all using EST. However, in the logstash log file, within a single entry, I see the actual timestamp of the even, I see timestamps that are 5 hours ahead of the event (which is UTC, this makes sense) and I also see timestamps that are 10 hours ahead of the event. (I wonder if the UTC info is being processed a second time?)
I have attached two files, both containing entries in the logstash log file. One file contains two entries sent by Linux systems and the second file contains an entry send by the Palo Alto firewall. The errors are not exactly the same, but they all have to do with not recognizing a date format.
I would be more than happy to provide any additional information. Please let me know what is needed.
Great thanks.