my url look like
https://google.demo.com/sites/demo/support/shared.demo/dump/ I want to regex
https://google.demo.com/sites/demo/support/ what rex
Hi @karu0711,
if the rule is that you want only 4 sections of your url, you could use this regex
| rex "^(?<url>\w+:\/(\/[^\/]+){4})"
that you can test at https://regex101.com/r/r7SZYY/1
Ciao.
Giuseppe
Hi @karu0711,
if the rule is that you want only 4 sections of your url, you could use this regex
| rex "^(?<url>\w+:\/(\/[^\/]+){4})"
that you can test at https://regex101.com/r/r7SZYY/1
Ciao.
Giuseppe
Hi @karu0711,
if one answer solves your need, please accept one answer for the other people of Community or tell me how I can help you.
Ciao and happy splunking
Giuseppe
P.S.: Karma Points are appreciated 😉