<?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: Splunk query to filter results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-filter-results/m-p/263588#M175783</link>
    <description>&lt;P&gt;Couple of options below.&lt;/P&gt;

&lt;P&gt;Specify the 5 servers directly with an OR:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar (host=host1 OR host=host2 OR host=host3 OR host=host4 OR host=host5)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming your sourcetype/index contains data that refers to those 6 hosts and only those you can do a "return all but this one":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=foo sourcetype=bar host!=hostIdontwanttosee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Jan 2017 09:40:27 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2017-01-30T09:40:27Z</dc:date>
    <item>
      <title>Splunk query to filter results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-filter-results/m-p/263587#M175782</link>
      <description>&lt;P&gt;I have some code deployed on 1 out of my 6 servers. I need a splunk query that pulls data from the other 5 hosts. Something like - All except this 1 host. I know the host option in splunk to look for the host's logs, but I have no idea how to do all except 1. Can someone please assist me?&lt;/P&gt;

&lt;P&gt;The one box I am talking about has my latest code changes, and the other 5 have my old code. So I want to write a query to do a before vs after analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 09:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-filter-results/m-p/263587#M175782</guid>
      <dc:creator>tejaswiniul</dc:creator>
      <dc:date>2017-01-30T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to filter results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-filter-results/m-p/263588#M175783</link>
      <description>&lt;P&gt;Couple of options below.&lt;/P&gt;

&lt;P&gt;Specify the 5 servers directly with an OR:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar (host=host1 OR host=host2 OR host=host3 OR host=host4 OR host=host5)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming your sourcetype/index contains data that refers to those 6 hosts and only those you can do a "return all but this one":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=foo sourcetype=bar host!=hostIdontwanttosee
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 09:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-to-filter-results/m-p/263588#M175783</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-01-30T09:40:27Z</dc:date>
    </item>
  </channel>
</rss>

