There are more variations but they are similar except that the position of dynamic values would very. I tried below rex command but it is replacing numbers only, if I update expression to consider alphanumeric then it is replacing all characters in the field and returning just slashes and asterisks.
|rex field=URI mode=sed "/s[0-9\s\t\n\v]+ | {2,} /* /g"
|stats count by URI
Result:
URI Count
abc/xyz//uvw 3
abc/xyz/def/uvw//a*b*c*d*/rst 1
abc/xyz/def/uvw//e*f*g*h/rst 1
|rex field=URI mode=sed "/s[a-zA-Z0-9\s\t\n\v]+ | {2,} /* /g"
|stats count by URI
URI Count
/// 3
//////* 2
... View more