Skip to content

Add failing test for Postfix patterns#67

Closed
joschi wants to merge 1 commit into
thekrakken:masterfrom
graylog-labs:deep-recursion-postfix-patterns
Closed

Add failing test for Postfix patterns#67
joschi wants to merge 1 commit into
thekrakken:masterfrom
graylog-labs:deep-recursion-postfix-patterns

Conversation

@joschi

@joschi joschi commented Jul 3, 2017

Copy link
Copy Markdown
Contributor

@retoo

retoo commented Jul 28, 2017

Copy link
Copy Markdown
Contributor

@joschi you were missing some rules and GROK didn't abort correctly. In case of non named groups it would just have rendered a regexp with 'null' as pattern. (Which is nonsense).

You can fix your case by adding grok.addPatternFromFile("patterns/patterns"); or by manually defining something for the key 'INT'.

My PR #69 improves the error messages in these cases.

@joschi

joschi commented Jul 28, 2017

Copy link
Copy Markdown
Contributor Author

@retoo Great, thanks for finding this!

@joschi

joschi commented Aug 4, 2017

Copy link
Copy Markdown
Contributor Author

Fixed by #69.

@joschi joschi closed this Aug 4, 2017
@joschi joschi deleted the deep-recursion-postfix-patterns branch August 4, 2017 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants