<?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 Return only events where field value is in lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Return-only-events-where-field-value-is-in-lookup-table/m-p/408783#M117985</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am running a search that returns many events.  Some of these events contain a field value that is also in a lookup table I have uploaded.  What is the best way to format my search in such a way that it ONLY returns events where the field value in the event is present in the lookup table?  Right now, the lookup itself works, but the search returns all events, whether it can look up the field value or not.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 19:47:54 GMT</pubDate>
    <dc:creator>bcarr12</dc:creator>
    <dc:date>2018-05-23T19:47:54Z</dc:date>
    <item>
      <title>Return only events where field value is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-only-events-where-field-value-is-in-lookup-table/m-p/408783#M117985</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am running a search that returns many events.  Some of these events contain a field value that is also in a lookup table I have uploaded.  What is the best way to format my search in such a way that it ONLY returns events where the field value in the event is present in the lookup table?  Right now, the lookup itself works, but the search returns all events, whether it can look up the field value or not.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 19:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-only-events-where-field-value-is-in-lookup-table/m-p/408783#M117985</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2018-05-23T19:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return only events where field value is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-only-events-where-field-value-is-in-lookup-table/m-p/408784#M117986</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=myindex [ | inputlookup lookupname.csv | fields field1 field2 field3 | format] | ... rest of search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will make a huge or statement with each of your fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=myindex ((field1=value) OR (field2=value2) OR field3=value3))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add a NOT in front of the sub search if you want events that do not match fields&amp;amp;values in the lookup.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 19:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-only-events-where-field-value-is-in-lookup-table/m-p/408784#M117986</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-05-23T19:57:25Z</dc:date>
    </item>
  </channel>
</rss>

