<?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 How do I make a Splunk query which would exclude hosts which are in a CSV lookup table? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-which-would-exclude-hosts-which-are/m-p/387206#M69448</link>
    <description>&lt;P&gt;Hello splunkers ,&lt;/P&gt;

&lt;P&gt;I need help with one query. I have all hosts coming in a query when i run i&lt;CODE&gt;ndex=*&lt;/CODE&gt; and i have some other hosts in a CSV file which i have loaded static using lookups. &lt;/P&gt;

&lt;P&gt;I want to run &lt;CODE&gt;index=*&lt;/CODE&gt; again but I don't want the hosts which are there in CSV to show up in my query.&lt;/P&gt;

&lt;P&gt;In short, during search time, i want to exclude all hosts which are there in CSV static file lookup .&lt;/P&gt;

&lt;P&gt;I am guessing that join command would work but don't know  how can i use .&lt;/P&gt;

&lt;P&gt;Please help &lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 18:59:16 GMT</pubDate>
    <dc:creator>kannu</dc:creator>
    <dc:date>2018-09-20T18:59:16Z</dc:date>
    <item>
      <title>How do I make a Splunk query which would exclude hosts which are in a CSV lookup table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-which-would-exclude-hosts-which-are/m-p/387206#M69448</link>
      <description>&lt;P&gt;Hello splunkers ,&lt;/P&gt;

&lt;P&gt;I need help with one query. I have all hosts coming in a query when i run i&lt;CODE&gt;ndex=*&lt;/CODE&gt; and i have some other hosts in a CSV file which i have loaded static using lookups. &lt;/P&gt;

&lt;P&gt;I want to run &lt;CODE&gt;index=*&lt;/CODE&gt; again but I don't want the hosts which are there in CSV to show up in my query.&lt;/P&gt;

&lt;P&gt;In short, during search time, i want to exclude all hosts which are there in CSV static file lookup .&lt;/P&gt;

&lt;P&gt;I am guessing that join command would work but don't know  how can i use .&lt;/P&gt;

&lt;P&gt;Please help &lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-which-would-exclude-hosts-which-are/m-p/387206#M69448</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2018-09-20T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a Splunk query which would exclude hosts which are in a CSV lookup table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-which-would-exclude-hosts-which-are/m-p/387207#M69449</link>
      <description>&lt;P&gt;@kannu ,&lt;BR /&gt;
Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="your index"  NOT [|inputlookup yourcsvfile]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 04:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-a-Splunk-query-which-would-exclude-hosts-which-are/m-p/387207#M69449</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-09-21T04:04:36Z</dc:date>
    </item>
  </channel>
</rss>

