-
Notifications
You must be signed in to change notification settings - Fork 2.1k
regex_parser transform doesn't work with nested fields #1812
Copy link
Copy link
Closed
Labels
domain: vrlAnything related to the Vector Remap LanguageAnything related to the Vector Remap Languagegood first issueAnything that is good for new contributors.Anything that is good for new contributors.needs: approvalNeeds review & approval before work can begin.Needs review & approval before work can begin.type: enhancementA value-adding code change that enhances its existing functionality.A value-adding code change that enhances its existing functionality.
Metadata
Metadata
Assignees
Labels
domain: vrlAnything related to the Vector Remap LanguageAnything related to the Vector Remap Languagegood first issueAnything that is good for new contributors.Anything that is good for new contributors.needs: approvalNeeds review & approval before work can begin.Needs review & approval before work can begin.type: enhancementA value-adding code change that enhances its existing functionality.A value-adding code change that enhances its existing functionality.
Currently the
regexcrate which underlies ourregex_parserimplementation supports only[_0-9a-zA-Z]+as possible names for captures groups. Thus nested fields of formx.y.zcannot be captured.For example, the following config unit test
fails with the error
I think we need to allow field names containing dots. A simplest option to do this is to fork the
regexcrate and add support for it there, send a PR to the upstream, and use the fork until the support for dots in capture groups in added to the upstream crate.