<?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: Compare a field with lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432336#M123537</link>
    <description>&lt;P&gt;How about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... mysearch |lookup lookupname lookupnamefield OUTPUT lookupnamefield as dummy|where isnotnull(dummy)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 May 2018 13:20:42 GMT</pubDate>
    <dc:creator>sheamus69</dc:creator>
    <dc:date>2018-05-31T13:20:42Z</dc:date>
    <item>
      <title>Compare a field with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432334#M123535</link>
      <description>&lt;P&gt;I was trying to compare searched result with lookup file.&lt;BR /&gt;
Is there any to compare results with lookup file.&lt;/P&gt;

&lt;P&gt;|mysearch&lt;BR /&gt;
|append[|inputlookup lookupname|field Lookupfield]&lt;BR /&gt;
|where searched=lookupfield&lt;/P&gt;

&lt;P&gt;this was my search trying but it is not working.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 05:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432334#M123535</guid>
      <dc:creator>praneshjan</dc:creator>
      <dc:date>2018-05-31T05:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a field with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432335#M123536</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... mysearch [|inputlookup lookupname | fields lookupField|format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will unpack to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... mysearch ((lookupField=valueFromLookupRow1) OR (lookupField=valueFromLookupRow2) OR ... )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 12:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432335#M123536</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-05-31T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a field with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432336#M123537</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... mysearch |lookup lookupname lookupnamefield OUTPUT lookupnamefield as dummy|where isnotnull(dummy)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 13:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-a-field-with-lookup-file/m-p/432336#M123537</guid>
      <dc:creator>sheamus69</dc:creator>
      <dc:date>2018-05-31T13:20:42Z</dc:date>
    </item>
  </channel>
</rss>

