Grok pattern for date

By : PuRaK

I have date in my logs as :

08 Jul 2016 08:58:07,258 ...

Currently I am using :

%{MONTHDAY}[T ]%{MONTH}[T ]%{YEAR}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})[T ]...

to parse it.

How can I convert this into date type. I know how to use 'date' to do so when we have an existing grok pattern but how to do that in my case?

By : PuRaK


You can have a custom pattern:

By : baudsp

This video can help you solving your question :)
By: admin