Grok fails to parse single digit patterns when used as part of other patterns
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I've run into a bug when using grok for dates. I'm not sure how to work around it, but it keeps resulting in _grokparsefailure.
Pattern for Date:
*******
* Essentially MONTHDAY is what breaks the Pattern, I've also tried other patterns but nothing works
* ([1-9]|
*******
MONTHDAY (?:(?:0[
TOMCATDATE %{MONTH} %{MONTHDAY}, %{YEAR} %{HOUR}
Sample Input:
1) Jun 4, 2013 12:25:33 AM org.apache.
2) Jun 14, 2013 12:25:33 AM org.apache.
3) June 4, 2013 12:25:33 AM org.apache.
4) June 04, 2013 12:25:33 AM org.apache.
Sample Output:
1) _grokparsefailure
2) SUCCESS
3) _grokparsefailure
4) SUCCESS
If you could look into this bug, I'd really appreciate it. Thanks
I think you are not in the right project. This is grok the framework based on ztk http:// grok.zope. org/ /code.google. com/p/semicompl ete/wiki/ Grok.
not https:/