Hello,
I have a problem with parsing my Timestamp log. Format is as follows:
2018-08-07 13:31:27.248097
As you can see I have three extra digits for thousandths of a second. I managed to solve it this way:
mutate {
split => { "Timestamp" => "." }
add_field => {
"DateTime" => "%{[Timestamp][0]}"
"Secondsss" => "%{[Timestamp][1]}"
}
}
date {
locale => "en"
match => ["DateTime", "yyyy-MM-dd HH:mm:ss"]
timezone => "Europe/Belgrade"
target => "@timestamp"
}
Is there any more elegant solution that will consume less processing time?
BR,
Mladen