How to add multiple values (comma separated) in a text box variable


I’m trying to search multiple values (comma separated) in a text box variable. But when I’m trying to get the value using the variable, it gives me as a full string. How can I get the comma separated values in an array from?


how do you want to use them? And with what data source?


I want to search like this, multiple value (comma separated). See the image below.


datasource - I’m using elasticsearch datasource.

Query - Something like this in the image below

You can’t change the value of the text box to an array. It can be done only with the drop-down variables Variable syntax | Grafana documentation.

However, if you want to query something using the text box, try this: