# dynamic multiple selection in saved search

**URL:** <https://forums.plex.tv/t/dynamic-multiple-selection-in-saved-search/229085>\
**Category:** General Discussions\
**Created:** [March 15, 2018, 5:36am UTC](https://forums.plex.tv/t/dynamic-multiple-selection-in-saved-search/229085 "2018-03-15T05:36:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahjohn.s388\_gmail.com](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sarahjohn.s388\_gmail.com](https://forums.plex.tv/u/sarahjohn.s388_gmail.com)\
**Post date:** [March 15, 2018, 5:36am UTC](https://forums.plex.tv/t/dynamic-multiple-selection-in-saved-search/229085/1 "2018-03-15T05:36:39Z")

</div>

Hi,

I have a below code which runs very slow because it is hitting the voluminous index to get the data which takes the huge time to retrieve the data for the particular dashboard ( I am using inline searches i.e.Plex ) , Please see the code below :

System Overview

`  
\*  
False  
1

 dashboard

`

Select Report Time Period

`

 index=os sourcetype=vmstat source=plex earliest=-5m@m latest=now | lookup serverlist host | table server | dedup server | sort str(server) HOST\_NAME Server List : 4 server="$value$" +OR+ ( $value$ ) server server 

```
               <module name="SubmitButton">
       <param name="label">Submit</param>   

```

 index=os | lookup serverlist host | search $HOST\_NAME$ | avg(Percent\_CPU\_Load) by host\_server useother=f limit=0 Percent Load by Host Time % Total CPU connect line 100% flashtimeline 

```
   </module>   
   
   </module> 

```

`

I want to use “scheduled saved searches”([Splunk](https://mindmajix.com/splunk-training "Splunk")) instead of “inline” and server name should be picked dynamically as it was being picked before ( in the above code )

Please help !!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 12:45am UTC](https://forums.plex.tv/t/dynamic-multiple-selection-in-saved-search/229085/2 "2020-01-08T00:45:31Z")

</div>


