Hi @tej57 , thank you for sharing the code for country and site. But here i have 8 hosts 4 belongs to India hosts and other 4 belongs to China. So i tried using below code for hosts in dashboard dr...
See more...
Hi @tej57 , thank you for sharing the code for country and site. But here i have 8 hosts 4 belongs to India hosts and other 4 belongs to China. So i tried using below code for hosts in dashboard drop down it is showing correctly, but when i open in search under selected fields the host name is not showing which i mentioned in drop down list, showing different host which is not mentioned in the drop down. we want to show data in dashboard only with these 8 hosts <input type="dropdown" token="host">
<label>Hosts</label>
<choice value="*">All</choice>
<prefix>host="</prefix>
<suffix>"</suffix>
<default>*</default>
<fieldForLabel>host</fieldForLabel>
<fieldForValue>host</fieldForValue>
<search>
<query>
| makeresults | eval site="BDC", host="jboss.cloud.com" | fields site host
| append [ | makeresults | eval site="BDC", host="ulkoy.cloud.com" | fields site host]
| append [ | makeresults | eval site="BDC", host="ualki.cloud.com" | fields site host]
| append [ | makeresults | eval site="BDC", host="hyjki.cloud.com" | fields site host]
| append [ | makeresults | eval site="SOC", host="uiy67.cloud.com" | fields site host]
| append [ | makeresults | eval site="SOC", host="7hy56.cloud.com" | fields site host]
| append [ | makeresults | eval site="SOC", host="ju5e.cloud.com" | fields site host]
| append [ | makeresults | eval site="SOC", host="mjut.cloud.com" | fields site host]
|seach $site$ |dedup host
| sort host
| table host
</query>
</search>
</input>