Use it like this (run anywhere code). You're extracting string and its need to be within double quotes for eval to work.
|stats count |eval test = [|rest /services/authentication/current-context |eval user="\"".username."\""|return $user]
Use it like this (run anywhere code). You're extracting string and its need to be within double quotes for eval to work.
|stats count |eval test = [|rest /services/authentication/current-context |eval user="\"".username."\""|return $user]
WOW!
Thank you very much. That solved the problem.
Another possibility is to use:
"+" instead of "." in the eval
Greetings