<?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 can I compare values from a lookup file with the indexed data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309479#M92832</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;A lookup file, with a single column, was configured for comparing the data that it's already indexed. The lookup table file was uploaded correctly and the lookup definition was done correctly but, I can't seem to come up with the correct query for this.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 15:38:58 GMT</pubDate>
    <dc:creator>Yaichael</dc:creator>
    <dc:date>2018-01-17T15:38:58Z</dc:date>
    <item>
      <title>How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309479#M92832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;A lookup file, with a single column, was configured for comparing the data that it's already indexed. The lookup table file was uploaded correctly and the lookup definition was done correctly but, I can't seem to come up with the correct query for this.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309479#M92832</guid>
      <dc:creator>Yaichael</dc:creator>
      <dc:date>2018-01-17T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309480#M92833</link>
      <description>&lt;P&gt;Without know what type of information the lookup contains and how it relates to your indexed data, I'm assuming your lookup has some search part (e.g. sourcetype, host or some keyword you want to search) and you want to see if those search parts appear in your indexed data (may be for specific indexes), you can use lookup in subsearch like this&lt;/P&gt;

&lt;P&gt;If your lookup field name has matching field name in your indexed data &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search to get indexed data [| inputlookup yourLookupDefinition | table YourLookupFieldName  ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your lookup field name doesn't have matching field name in your indexed data &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search to get indexed data [| inputlookup yourLookupDefinition | table YourLookupFieldName  | rename YourLookupFieldName  as yourIndexedDataFieldName]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your lookup field is keyword and you're trying to search it in raw events of your indexed data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search to get indexed data [| inputlookup yourLookupDefinition | table YourLookupFieldName  | rename YourLookupFieldName  as search]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309480#M92833</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-17T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309481#M92834</link>
      <description>&lt;P&gt;could you please share sample data and sample lookup data and output what you want to achieve..&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309481#M92834</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-17T16:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309482#M92835</link>
      <description>&lt;P&gt;Thanks for the reply, somesoni2.&lt;/P&gt;

&lt;P&gt;My case is the second example, which I executed but, it isn't returning anything. If I execute the following query separately it does return results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourLookupDefinition | table YourLookupFieldName  | rename YourLookupFieldName  as yourIndexedDataFieldName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309482#M92835</guid>
      <dc:creator>Yaichael</dc:creator>
      <dc:date>2018-01-17T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309483#M92836</link>
      <description>&lt;P&gt;What's the search you tried? Hopefully your correctly replace the lookup and field names from my query (field names are case sensitive).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309483#M92836</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-17T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309484#M92837</link>
      <description>&lt;P&gt;I tried the following search:&lt;/P&gt;

&lt;P&gt;your base search to get indexed data [| inputlookup yourLookupDefinition | table YourLookupFieldName  | rename YourLookupFieldName  as yourIndexedDataFieldName]&lt;/P&gt;

&lt;P&gt;where yourIndexedDataFieldName is an extracted field. Taking in consideration that field names are case sensitive, I rechecked the query and everything looks fine.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 18:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309484#M92837</guid>
      <dc:creator>Yaichael</dc:creator>
      <dc:date>2018-01-17T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare values from a lookup file with the indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309485#M92838</link>
      <description>&lt;P&gt;The query is correct but, there isn't any data present that matches the values from the lookup file.&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 20:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-compare-values-from-a-lookup-file-with-the-indexed/m-p/309485#M92838</guid>
      <dc:creator>Yaichael</dc:creator>
      <dc:date>2018-01-17T20:16:04Z</dc:date>
    </item>
  </channel>
</rss>

