Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Mention no underscore in named groups of grok patterns #535

Closed
kmerz opened this issue Jan 22, 2019 · 1 comment
Closed

Mention no underscore in named groups of grok patterns #535

kmerz opened this issue Jan 22, 2019 · 1 comment
Milestone

Comments

@kmerz
Copy link
Member

kmerz commented Jan 22, 2019

Context

Named groups in grok patterns can't be compiled when containing underscores. The java
pattern compiler do not allow them:
https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html#groupname

Expected Content

Named groups in patterns mustn't contain _ (e.g (?<field_name>\d.\d)) but should
rather look like: (?<fieldname>\d.\d)

Refs: Graylog2/graylog2-server#5563

@kmerz kmerz added this to the 3.0.0 milestone Jan 22, 2019
@kmerz
Copy link
Member Author

kmerz commented Jul 10, 2019

Not needed anymore. We fixed the issue instead.

Fixed by: Graylog2/graylog2-server#5704

@kmerz kmerz closed this as completed Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant