Hello,
I am trying to filter a set dashboard charts with a multiselect token, only that the multiselect values come from a lookup. Here is where I get the values:
index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | stats values(Team) as Team | mvexpand Team
I have two issues:
What is the recommended command to filter all data at the end according to multiple fields and field values?
Thank you and best regards,
Andrew
Hi andrewtrobec,
if I correctly understood: you have to create a multivalue input from a lookup and then use it to filter a search?
if this is your need you have to:
create a multivalue input (called e.g. myToken) from the lookup using something like this
|inputlookup Resources.csv | dedup Team, | sort Team | table Team
putting in:
Team="
"
" OR Team="
After you can insert in your search
index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | search $myToken$ | ...
Bye.
Giuseppe
Exactly what I was looking for! Thank you!
Hi andrewtrobec,
if I correctly understood: you have to create a multivalue input from a lookup and then use it to filter a search?
if this is your need you have to:
create a multivalue input (called e.g. myToken) from the lookup using something like this
|inputlookup Resources.csv | dedup Team, | sort Team | table Team
putting in:
Team="
"
" OR Team="
After you can insert in your search
index="my_index" | lookup Resources.csv Resource_Name OUTPUT Team | search $myToken$ | ...
Bye.
Giuseppe