In the code below, i want the explicit {5} to be replaced with a variable like {$session_length$}. Is this possible? If so, how? Thanks!
| makeresults
| eval test="abc5defgHijk"
| rex field=test "^.{3}(?<session_length>\d)(?<session>.{5})"
|fields session
I want the output of session="defgH".
... View more