Pattern for Specific Date and Time format

Hi,
I am fairly new to logtstash I am trying to find the correct Date pattern to successfully parse out the date format of this log type but I cant seem to get it to parse properly. I am guessing its something simple but I am not exactly sure....also how does one escape a Back Slash?? is it just done with another back slash?
00%20AM

\"%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?\",\"

Thanks

If your field literally has \" at each end then

    mutate { add_field => { "ts" => '\"2019-05-30 18:53:55\"' } }
    date { match => [ "ts", "'\"'YYYY-MM-dd HH:mm:ss'\"'" ] }

would work.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.