<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic saved search multiple values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517284#M145445</link>
    <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a saved search (instead of&amp;nbsp; typing the same search command few times a day) , but there's a small "catch" in my search - I want to put multiple choice as one of the variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. Long search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=console1(sourcetype=c1:agent OR sourcetype="c1:agent_registered") computerName="computer1 OR&amp;nbsp;computer2 OR&amp;nbsp;computer25&amp;nbsp;&lt;BR /&gt;| stats count by host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a basic saved seach:&amp;nbsp;index=console1(sourcetype=c1:agent OR sourcetype="c1:agent_registered") $computerName$&lt;BR /&gt;| stats count by host&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my&amp;nbsp;computerName can be different every time i need to check a new machine., but I can only one at a time... Is there a way to add that option to my saved search?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 15:37:40 GMT</pubDate>
    <dc:creator>klaudiac</dc:creator>
    <dc:date>2020-09-01T15:37:40Z</dc:date>
    <item>
      <title>saved search multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517284#M145445</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a saved search (instead of&amp;nbsp; typing the same search command few times a day) , but there's a small "catch" in my search - I want to put multiple choice as one of the variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. Long search:&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=console1(sourcetype=c1:agent OR sourcetype="c1:agent_registered") computerName="computer1 OR&amp;nbsp;computer2 OR&amp;nbsp;computer25&amp;nbsp;&lt;BR /&gt;| stats count by host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a basic saved seach:&amp;nbsp;index=console1(sourcetype=c1:agent OR sourcetype="c1:agent_registered") $computerName$&lt;BR /&gt;| stats count by host&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my&amp;nbsp;computerName can be different every time i need to check a new machine., but I can only one at a time... Is there a way to add that option to my saved search?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517284#M145445</guid>
      <dc:creator>klaudiac</dc:creator>
      <dc:date>2020-09-01T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: saved search multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517290#M145447</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223748"&gt;@klaudiac&lt;/a&gt;&amp;nbsp;, do you have the host list with you? Also, is it like a partcular time only a particular host needs to be searched? If so, does this change with time - ie, at 6 PM today Host XXX needs to be checked while at 6PM tomorrow Host YYY needs to be checked?&lt;/P&gt;&lt;P&gt;If its just simple search from a list of host which you have to begin with you can use :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=console1(sourcetype=c1:agent OR sourcetype="c1:agent_registered") host IN (hostname1,hostname2..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats count by host&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517290#M145447</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-09-01T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: saved search multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517295#M145450</link>
      <description>&lt;P&gt;Have you considered putting the search into a dashboard?&amp;nbsp; Then you can have an input selector where you can choose the computers to include in the search.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517295#M145450</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-01T15:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: saved search multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517297#M145451</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list of the hosts depends on a day when we do the installations, so one day it can be 1 host, and another day I can have a list of 13 to check.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no set time frame so whenever I log in the morning I just set my time to last 30min or last 60min and run it then and see if they are active.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/saved-search-multiple-values/m-p/517297#M145451</guid>
      <dc:creator>klaudiac</dc:creator>
      <dc:date>2020-09-01T15:57:07Z</dc:date>
    </item>
  </channel>
</rss>

