Hi,
I try to use regex syntax with grok/match. I don't have any error and the match not working.
Anything wrong here ???
grok {
match => { "[event_data][param2]" => "(?<adfs_userid>(?<=\<UserId\>)(.*)(?=\<\/UserId\>))" }
}
I use another match in the same if to make sure my condition is ok.
Thank you in advance!!!
yaauie
(Ry Biesemeyer)
March 24, 2018, 7:44am
2
Hm. It definitely looks like it should match using the Grok Constructor , but is not matching in Logstash.
I think it may have to do with the lookahead- and lookbehind assertions; I can capture with the following though:
grok {
match => { "[event_data][param2]" => "<UserId>(?<adfs_userid>(.*))</UserId>" }
}
system
(system)
Closed
April 21, 2018, 7:44am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.