<?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: How do i lookup 2 fields and match with base search? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-lookup-two-fields-and-match-with-base-search/m-p/597736#M12543</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=a host=b | table Message1,EventCode,Status 

| lookup blabla.csv Status EventCode OUTPUT action&lt;/LI-CODE&gt;&lt;P&gt;If the lookup is file based, you can check/uncheck the case sensitive box (in lookup definitions - advanced settings)&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 07:48:32 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-13T07:48:32Z</dc:date>
    <item>
      <title>How to lookup two fields and match with base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-lookup-two-fields-and-match-with-base-search/m-p/597703#M12541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have 2 queries:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Message1,EventCode,Status&lt;/P&gt;
&lt;P&gt;aaaaa,4625,0XC0000234&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Status,EventCode,action&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0xC0000234,4625,denied&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0XC0000234,4776,failure&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;*note the lower and uppercase "x". Case sensitive&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Query1, the status field is always uppercase (e.g.&amp;nbsp;0XC0000234 and not&amp;nbsp;0xC0000234 nor&amp;nbsp;0xc0000234)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When i perform a search and lookup:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;index=a host=b | table Message1,EventCode,Status&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;| lookup blabla.csv Status OUTPUT action&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I'm getting the output:&lt;/P&gt;
&lt;P&gt;Message1,EventCode,Status,action&lt;/P&gt;
&lt;P&gt;aaaaa,4625,0XC0000234,&lt;STRONG&gt;failure&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Above is incorrect as 4625 should return "denied" instead of "failure"&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How do i do a lookup to first:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Check the EventCode&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Return the corresponding action field with case insensitive&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Or is there a better way aside from the 2 points i mentioned above?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Appreciate the help!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 15:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-lookup-two-fields-and-match-with-base-search/m-p/597703#M12541</guid>
      <dc:creator>johanhakim</dc:creator>
      <dc:date>2022-05-13T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do i lookup 2 fields and match with base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-lookup-two-fields-and-match-with-base-search/m-p/597736#M12543</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=a host=b | table Message1,EventCode,Status 

| lookup blabla.csv Status EventCode OUTPUT action&lt;/LI-CODE&gt;&lt;P&gt;If the lookup is file based, you can check/uncheck the case sensitive box (in lookup definitions - advanced settings)&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 07:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-lookup-two-fields-and-match-with-base-search/m-p/597736#M12543</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-13T07:48:32Z</dc:date>
    </item>
  </channel>
</rss>

