mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
Merge pull request #371 from alexkoltun/patch-1
Make 'HOUR' accept single-digit hours.
This commit is contained in:
commit
d05407e29c
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ YEAR (?>\d\d){1,2}
|
|||
# I'm still on the fence about using grok to perform the time match,
|
||||
# since it's probably slower.
|
||||
# TIME %{POSINT<24}:%{POSINT<60}(?::%{POSINT<60}(?:\.%{POSINT})?)?
|
||||
HOUR (?:2[0123]|[01][0-9])
|
||||
HOUR (?:2[0123]|[01]?[0-9])
|
||||
MINUTE (?:[0-5][0-9])
|
||||
# '60' is a leap second in most time standards and thus is valid.
|
||||
SECOND (?:(?:[0-5][0-9]|60)(?:[:.,][0-9]+)?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue