<?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 Comparing field value results to values(alphanumeric) in lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-field-value-results-to-values-alphanumeric-in-lookup/m-p/423666#M121572</link>
    <description>&lt;P&gt;I am trying to compare the field values of a lookup file(alphanumeric values) to the my search results. Please help me with the search command. This is to compare file extensions with that of the blacklisted extensions and to create an alert when it matches.&lt;/P&gt;

&lt;P&gt;Lookup :&lt;/P&gt;

&lt;P&gt;Extensions          Name&lt;BR /&gt;
.xml                      XML&lt;BR /&gt;
.py                        Python&lt;BR /&gt;
.sh                        Shell&lt;/P&gt;

&lt;P&gt;Comparing the extensions filed with the results that i get is what i need to do.&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 11:21:07 GMT</pubDate>
    <dc:creator>harishkothandar</dc:creator>
    <dc:date>2018-05-30T11:21:07Z</dc:date>
    <item>
      <title>Comparing field value results to values(alphanumeric) in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-field-value-results-to-values-alphanumeric-in-lookup/m-p/423666#M121572</link>
      <description>&lt;P&gt;I am trying to compare the field values of a lookup file(alphanumeric values) to the my search results. Please help me with the search command. This is to compare file extensions with that of the blacklisted extensions and to create an alert when it matches.&lt;/P&gt;

&lt;P&gt;Lookup :&lt;/P&gt;

&lt;P&gt;Extensions          Name&lt;BR /&gt;
.xml                      XML&lt;BR /&gt;
.py                        Python&lt;BR /&gt;
.sh                        Shell&lt;/P&gt;

&lt;P&gt;Comparing the extensions filed with the results that i get is what i need to do.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 11:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-field-value-results-to-values-alphanumeric-in-lookup/m-p/423666#M121572</guid>
      <dc:creator>harishkothandar</dc:creator>
      <dc:date>2018-05-30T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing field value results to values(alphanumeric) in lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-field-value-results-to-values-alphanumeric-in-lookup/m-p/423667#M121573</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;Match what’s in the lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=test [|inputlookup lookupname.csv | fields fieldFromLookup | format ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will turn into this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test ((fieldFromLookup=valueFromRow1) OR (fieldFromLookup=valueFromRow2) ...)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the field name in the lookup is different from the fiel name in your index, add a rename to the subseaech:&lt;/P&gt;

&lt;P&gt;index=test [|inputlookup lookupname.csv | fields fieldFromLookup | rename fieldFromLookup as fieldInData | format ]&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 14:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-field-value-results-to-values-alphanumeric-in-lookup/m-p/423667#M121573</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-05-30T14:36:42Z</dc:date>
    </item>
  </channel>
</rss>

