<?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 Re: select subset of hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63227#M15618</link>
    <description>&lt;P&gt;you can try using following query&lt;/P&gt;

&lt;P&gt;index="prd_access" sourcetype="access:web:foo" earliest=-7d latest=now | search NOT ("abc18" OR "abc19")&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2013 11:57:21 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2013-09-13T11:57:21Z</dc:date>
    <item>
      <title>select subset of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63226#M15617</link>
      <description>&lt;P&gt;Hello, splunk newbie here,&lt;/P&gt;

&lt;P&gt;I have tens of servers named like abc01, abc02 .... abc20. Now i would like to search for events on a subset of these machines like for example only the abc18 and abc19. I'm trying searches like&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="prd_access" sourcetype="access:web:foo" earliest=-7d latest=now | regex "abc(18|19)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This seems to work but how can i select data from everything except these "abc(18|19)" ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host!="abc(18|19)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;doesn't seem to work..&lt;/P&gt;

&lt;P&gt;Thanks in advance, &lt;/P&gt;

&lt;P&gt;Bert&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 11:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63226#M15617</guid>
      <dc:creator>BertKraan</dc:creator>
      <dc:date>2013-09-13T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: select subset of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63227#M15618</link>
      <description>&lt;P&gt;you can try using following query&lt;/P&gt;

&lt;P&gt;index="prd_access" sourcetype="access:web:foo" earliest=-7d latest=now | search NOT ("abc18" OR "abc19")&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 11:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63227#M15618</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-09-13T11:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: select subset of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63228#M15619</link>
      <description>&lt;P&gt;Will give it a try, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 12:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63228#M15619</guid>
      <dc:creator>BertKraan</dc:creator>
      <dc:date>2013-09-13T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: select subset of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63229#M15620</link>
      <description>&lt;P&gt;I would use the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index="prd_access" sourcetype="access:web:foo" earliest=-7d latest=now NOT host=abc18 NOT host=abc19&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There's not a need to run a second search via the | operator, just go ahead and filter out those hosts in the first search command.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 14:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/select-subset-of-hosts/m-p/63229#M15620</guid>
      <dc:creator>zeroactive</dc:creator>
      <dc:date>2013-09-13T14:02:51Z</dc:date>
    </item>
  </channel>
</rss>

