Parse timestamps in libvirt logs properly.
The libvirt logs use a slightly different timestamp than the other log files (iso8601 including the timezone offset) which makes logstash unhappy when it receives these timestamps. Parse them properly to keep logstash logs under control and hopefully happy. Change-Id: I18b7f263d083d9babbdf1404298cb7def0b8501a
This commit is contained in:
parent
74c0d7c269
commit
5824bc7e24
@ -102,7 +102,7 @@ filter {
|
||||
|
||||
if ! ("_grokparsefailure" in [tags]) {
|
||||
date {
|
||||
match => [ "logdate", "yyyy-MM-dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss,SSS", "yyyy-MM-dd HH:mm:ss", "MMM d HH:mm:ss", "MMM dd HH:mm:ss", "dd/MMM/yyyy:HH:mm:ss Z" ]
|
||||
match => [ "logdate", "yyyy-MM-dd HH:mm:ss.SSS", "yyyy-MM-dd HH:mm:ss,SSS", "yyyy-MM-dd HH:mm:ss", "MMM d HH:mm:ss", "MMM dd HH:mm:ss", "dd/MMM/yyyy:HH:mm:ss Z", "yyyy-MM-dd HH:mm:ss.SSSZ" ]
|
||||
timezone => "UTC"
|
||||
}
|
||||
mutate {
|
||||
|
Loading…
x
Reference in New Issue
Block a user