Add more logstash timestamp formats
Logstash is failing to index some events because it can't parse the timestamp. {:timestamp=>"2015-11-24T06:45:06.308000+0000", :message=>"Failed parsing date from field", :field=>"logdate", :value=>"2015-11-24 06:41:40.274488", :exception=>java.lang.IllegalArgumentException: Invalid format: "2015-11-24 06:41:40.274488", :level=>:warn} Add another string match for these more precise timestamps, and also add ISO8601 as a fallback pattern. Change-Id: Ic821bbc353be2883099ac84a2f33e363864dcd94
This commit is contained in:
parent
df520b64cd
commit
0d576e8191
@ -93,6 +93,7 @@ filter {
|
||||
date {
|
||||
match => [ "logdate",
|
||||
"yyyy-MM-dd HH:mm:ss.SSS",
|
||||
"yyyy-MM-dd HH:mm:ss.SSSSSS",
|
||||
"yyyy-MM-dd HH:mm:ss,SSS",
|
||||
"yyyy-MM-dd HH:mm:ss",
|
||||
"MMM d HH:mm:ss",
|
||||
@ -100,7 +101,8 @@ filter {
|
||||
"dd/MMM/yyyy:HH:mm:ss Z",
|
||||
"yyyy-MM-dd HH:mm:ss.SSSZ",
|
||||
"E MMM dd HH:mm:ss yyyy Z",
|
||||
"E MMM dd HH:mm:ss yyyy"
|
||||
"E MMM dd HH:mm:ss yyyy",
|
||||
"ISO8601"
|
||||
]
|
||||
timezone => "UTC"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user