ssasporta
(Sharon Sasporta)
November 21, 2017, 9:50pm
1
The date in my logs looks like that:
Nov 5, 2017 11:06:30 PM CST
I tried to parse it like that:
date {
match => [ "timestamp" , "MMM dd, yyyy KK:mm:ss aa Z" ]
}
or like that:
date {
match => [ "timestamp" , "MMM dd, yyyy HH:mm:ss aa Z" ]
}
But still getting the error:
[1] "_dateparsefailure"
What is the right way to parse this date format?
Thanks
Sharon.
1 Like
Badger
November 21, 2017, 10:12pm
2
According to the docs , valid timezones are listed on this page , and CST is not one of them. Is that the same as CST6CDT?
mutate { gsub => [ "message", "CST", "CST6CDT" ] }
date { match => [ "message", "MMM d, yyyy HH:mm:ss a ZZZ" ] }
2 Likes
ssasporta
(Sharon Sasporta)
November 21, 2017, 10:41pm
3
Yes, it is the same , but still : "_dateparsefailure"
I tried few ways including yours.
mutate {
gsub => [ "timestamp", "CST", "CST6CDT" ]
}
date {
match => [ "timestamp", "MMM dd, yyyy hh:mm:ss aa Z" ]
}
Thanks
Sharon.
ssasporta
(Sharon Sasporta)
November 21, 2017, 10:45pm
4
I think I found the issue. Will let you know.
Looks your answer was good.
ssasporta
(Sharon Sasporta)
November 21, 2017, 10:49pm
5
Your answer was actually perfect.
(I had two different timestamp fields in same events with same name)
Thanks a lot
Sharon.
system
(system)
Closed
December 19, 2017, 10:50pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.