-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser: regex: Do not skip empty regex group matches #1913
base: master
Are you sure you want to change the base?
Conversation
I think a hazard of this change is that we can't tell which groups are empty versus omitted. For example:
|
hmmm I suggest to introduce a new configuration property to the parsers called |
ping |
Oh, thanks for the ping. Had completely forgotten about this one. |
Signed-off-by: Nigel Stewart <[email protected]>
…s, or not Signed-off-by: Nigel Stewart <[email protected]>
534fd75
to
2745390
Compare
Updated the PR with |
|
@nigels-com How about this PR ? |
Regular Expression Parser is skipping empty values #1486
Unlike the other parses, empty regex groups are omitted from the output.
Sample setup:
Output with this patch applied:
Without this change the
"client_ip":""
would be missing from the output.