Hello,
I have a doubt that I think it´s easy to respond, but until now, I have no results.
I want to make an query that depends on the result of a token, example:
If the token is set to yeallow,
then the following query will be executed: index=a | stats count by field.name1
If the token is set to red,
then the following query will be executed: index=b | stats count by field.name2, field.name4
If the toke is set to green,
then the following query will be executed: index=c | stats count by field.name3, field.name5, field.name6
How can I achieve this?
Thanks in advance.
Best regards.
... View more