Skip to content

Commit

Permalink
Adding the 8061 date format which was referenced in L65 comment but n…
Browse files Browse the repository at this point in the history
…ot actually implemented
  • Loading branch information
berglh committed Jan 13, 2016
1 parent 53bb945 commit ab106e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patterns/grok-patterns
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ TIME (?!<[0-9])%{HOUR}:%{MINUTE}(?::%{SECOND})(?![0-9])
# datestamp is YYYY/MM/DD-HH:MM:SS.UUUU (or something like it)
DATE_US %{MONTHNUM}[/-]%{MONTHDAY}[/-]%{YEAR}
DATE_EU %{MONTHDAY}[./-]%{MONTHNUM}[./-]%{YEAR}
DATE_8061 %{YEAR}[./-]%{MONTHDAY}[./-]%{MONTHNUM}
ISO8601_TIMEZONE (?:Z|[+-]%{HOUR}(?::?%{MINUTE}))
ISO8601_SECOND (?:%{SECOND}|60)
TIMESTAMP_ISO8601 %{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?
DATE %{DATE_US}|%{DATE_EU}
DATE %{DATE_US}|%{DATE_EU}|%{DATE_8061}
DATESTAMP %{DATE}[- ]%{TIME}
TZ (?:[PMCE][SD]T|UTC)
DATESTAMP_RFC822 %{DAY} %{MONTH} %{MONTHDAY} %{YEAR} %{TIME} %{TZ}
Expand Down

0 comments on commit ab106e9

Please sign in to comment.