The date field is like this 2019-07-08
The time field is like this 17:03:43
I am trying to use this filter
Code: Select all
mutate {
add_field => ["ts", "%{date} %{time}"]
}
date {
match => ["ts", "yyyy-MM-dd HH:mm:ss"]
target => "@timestamp"
}
mutate {
remove_field => ["ts", "date", "time", "EventReceivedTime"]
}
If I remove the date {} section it shows up again.
Is there a preferred syntax for date?
Please advise.
Thanks
Steve B