vilman
August 9, 2022, 12:43pm
1
Hi,
I'm trying to map a nested field from a custom grok expression.
So, instead of using:
(?=.*?Message Type: (?<test1>[^;]+))?
I would like to map test1 to [event][name].
Tried things like:
(?=.*?Message Type: (?<[event][name]>[^;]+))?
(?=.*?Message Type: (?<event.name>[^;]+))?
(?=.*?Message Type: (?<{[event][name]}>[^;]+))?
...
Is that even possible? I know I could rename them later but that's not the idea...
Thanks!
vilman
August 9, 2022, 12:49pm
2
This seems related to a support library issue. Can't be fixed at least 3y ago. An option would be to define custom patterns.
See Parse regex to a nested field · Issue #66 · logstash-plugins/logstash-filter-grok · GitHub .
1 Like
system
(system)
Closed
September 6, 2022, 12:50pm
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.