Let’s say I have a variable that i reference with
${urls}
i query this using something like against my logs
|~ “${urls}
I am trying to do some string manipulation on the urls variable. for instance i want to replace all , with | and { with ( and } with ) so that i have a regex to match against all these different urls.
I am trying to do this with regexReplaceAll but it is not working and I can’t seem to find a solution. is it possible to do this?
I’ve also tried pipes
https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/#pipe
all values
but when i click my array it produces the string
{'val1', 'val2'}
instead of
['val1', 'val2']
in my query variable