Hi,
we have uris in the below format. i want to capture only up to 2 levels (if it does not have 2 levels it should show what it has. for example xxxx in the first uri example) and i have used below rex expression but it still gets all the levels. Any help is appreciated
rex field=uri_path "/(?
/xxxx
/xxxx/yyy
/xxxx/yyy/zzzz/
try this
| rex field=uri_path "/(?<uri_path1>\w+(\/\w+){0,1})"
Thx. it worked