Here is my input data:
{"timestamp":"2018-12-08T09:42:02.610645-0800","flow_id":539201256297189}
Here is my grok pattern:
%{TIMESTAMP_ISO8601}
Here is the output:
HOUR
08
ISO8601_TIMEZONE
-0800
MINUTE
00
MONTHDAY
08
MONTHNUM
12
SECOND
02.610645
YEAR
2018
Why does it get the HOUR and MINUTE wrong? I tried the following grok pattern:
%{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{NUMBER:hour}:?%{NUMBER:minute}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?
And that gives:
42
HOUR
08
ISO8601_TIMEZONE
-0800
MINUTE
00
MONTHDAY
08
MONTHNUM
12
SECOND
02.610645
YEAR
2018
hour
09
minute
42
HOUR is defined as (?:2[0123]|[01]?[0-9])
in my Graylog.
What gives?