Hi Team,
I have one requirement.
I need to extract one field from the event. Below are my events.
L=Phoenix, ST=Arizona, C=US>) GET https://lpdosputb50090.phx.vxp.com:9091/api/flow/process-groups/7
L=Phoenix, ST=Arizona, C=US>) GET https://lpdosputb50090.phx.vxp.com:9091/api/flow/process-groups
L=Phoenix, ST=Arizona, C=US>) PUT https://lpdosputb50090.phx.Vxp.com:9091/api/flow/process-groups/7c
L=Phoenix, ST=Arizona, C=US>) POST https://lpdosputb50087.phx.vxp.com:9091/api/flow/process-groups/
I want to extract the word that I have highlighted.
Can someone provide me regex for that.
Hi @aditsss,
please try this regex
| rex "\)\s+(?<action>[^ ]+)"
that you can test at https://regex101.com/r/23hLks/1
Ciao.
Giuseppe
Try
\) (?<word>\w+) http
Hi @aditsss,
please try this regex
| rex "\)\s+(?<action>[^ ]+)"
that you can test at https://regex101.com/r/23hLks/1
Ciao.
Giuseppe
Thank you so much. Solutions work for me.