<form>
<fieldset submitButton="false">
<input type="multiselect" token="tok_input" searchWhenChanged="true">
<label>drilldowncheck</label>
<fieldForLabel>city</fieldForLabel>
<fieldForValue>city</fieldForValue>
<search>
<query>| makeresults count=5
| streamstats count
| eval age = case(count=1, 25, count=2, 39, count=3, 31, count=4, 20,count=5,60)
| eval city = case(count=1 OR count=3, "San Francisco", count=2 OR count=4, "Seattle",count=5,"UAE")
| stats avg(age) BY city</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter>,</delimiter>
</input>
</fieldset>
<row>
<panel>
<chart>
<title>testing</title>
<search>
<query>| makeresults count=5
| streamstats count
| eval age = case(count=1, 25, count=2, 39, count=3, 31, count=4, 20,count=5,60)
| eval city = case(count=1 OR count=3, "San Francisco", count=2 OR count=4, "Seattle",count=5,"UAE")|where city IN ($tok_input$)
| stats avg(age) BY city</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="charting.chart">pie</option>
<option name="charting.drilldown">all</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<set token="tok_input">$click.value$</set>
<set token="form.tok_input">$click.value$</set>
</drilldown>
</chart>
</panel>
</row>
</form>
<form>
<fieldset submitButton="false">
<input type="multiselect" token="tok_input" searchWhenChanged="true">
<label>drilldowncheck</label>
<fieldForLabel>city</fieldForLabel>
<fieldForValue>city</fieldForValue>
<search>
<query>| makeresults count=5
| streamstats count
| eval age = case(count=1, 25, count=2, 39, count=3, 31, count=4, 20,count=5,60)
| eval city = case(count=1 OR count=3, "San Francisco", count=2 OR count=4, "Seattle",count=5,"UAE")
| stats avg(age) BY city</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter>,</delimiter>
</input>
</fieldset>
<row>
<panel>
<chart>
<title>testing</title>
<search>
<query>| makeresults count=5
| streamstats count
| eval age = case(count=1, 25, count=2, 39, count=3, 31, count=4, 20,count=5,60)
| eval city = case(count=1 OR count=3, "San Francisco", count=2 OR count=4, "Seattle",count=5,"UAE")|where city IN ($tok_input$)
| stats avg(age) BY city</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="charting.chart">pie</option>
<option name="charting.drilldown">all</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<set token="tok_input">$click.value$</set>
<set token="form.tok_input">$click.value$</set>
</drilldown>
</chart>
</panel>
</row>
</form>
Set the token name to be
form.xxx
in your drilldown setting
where xxx is the name of your multiselect token
(you need "form." to make this work)