<?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 you map value from inputlookup to another search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597551#M208047</link>
    <description>&lt;P&gt;In the lookup table the headers are:&lt;/P&gt;&lt;P&gt;EventCode,action,Error_Code,Description&lt;/P&gt;&lt;P&gt;1111,failure,0x00006d,bad username&lt;/P&gt;&lt;P&gt;For query1 it is as below:&lt;/P&gt;&lt;P&gt;Message1,Message2, Status&lt;/P&gt;&lt;P&gt;The "status" field from query1 is produced from a rex command.&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 09:14:17 GMT</pubDate>
    <dc:creator>johanhakim</dc:creator>
    <dc:date>2022-05-12T09:14:17Z</dc:date>
    <item>
      <title>How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597542#M208040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 separate queries as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query1:&amp;nbsp;&lt;/STRONG&gt;(normal splunk search e.g. index=* host=abcde | table Message1,Message2,Status ....)&lt;/P&gt;&lt;P&gt;Message1, Message2, Status&lt;/P&gt;&lt;P&gt;aaaa,bbbb,0x000006d&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query2:&amp;nbsp;&lt;/STRONG&gt;(using inputlookup blabla.csv | table Status,Action)&lt;/P&gt;&lt;P&gt;Status,Action&lt;/P&gt;&lt;P&gt;0x00006d,Failure&lt;/P&gt;&lt;P&gt;How do i map both queries above and produce output as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Message1,Message2,Status,Action&lt;/P&gt;&lt;P&gt;aaaa,bbbb,0x00006d,Failure&lt;/P&gt;&lt;P&gt;Basically the Status from Query1 needs to be mapped with Query2 and output the corresponding action.&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 08:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597542#M208040</guid>
      <dc:creator>johanhakim</dc:creator>
      <dc:date>2022-05-12T08:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597547#M208043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241740"&gt;@johanhakim&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;After Query 1 you could use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup blabla.csv Status OUTPUT Action&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;One of multiple approaches.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 08:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597547#M208043</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2022-05-12T08:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597548#M208044</link>
      <description>&lt;P class="lia-align-left"&gt;Only Status column has value. No value under the action column. Seems like it is not mapping. Any other way?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597548#M208044</guid>
      <dc:creator>johanhakim</dc:creator>
      <dc:date>2022-05-12T09:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597549#M208045</link>
      <description>&lt;P&gt;What are the actual column names in the lookup table? Is it "Status" and "Action" (Starting with capital letter)?&lt;BR /&gt;Also the fields from Query 1?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597549#M208045</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2022-05-12T09:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597551#M208047</link>
      <description>&lt;P&gt;In the lookup table the headers are:&lt;/P&gt;&lt;P&gt;EventCode,action,Error_Code,Description&lt;/P&gt;&lt;P&gt;1111,failure,0x00006d,bad username&lt;/P&gt;&lt;P&gt;For query1 it is as below:&lt;/P&gt;&lt;P&gt;Message1,Message2, Status&lt;/P&gt;&lt;P&gt;The "status" field from query1 is produced from a rex command.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597551#M208047</guid>
      <dc:creator>johanhakim</dc:creator>
      <dc:date>2022-05-12T09:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597553#M208049</link>
      <description>&lt;P&gt;Not to worry, i found the solution!&lt;/P&gt;&lt;P&gt;The Error_Code (i have renamed this to Status) in Query 2 was in uppercase whereas the Status in Query 1 was in lowercase. After matching them to either upper/lower case, i&amp;nbsp; managed to get the desired output based on your lookup recommendation.&lt;/P&gt;&lt;P&gt;Thanks anyways! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597553#M208049</guid>
      <dc:creator>johanhakim</dc:creator>
      <dc:date>2022-05-12T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you map value from inputlookup to another search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597554#M208050</link>
      <description>&lt;P&gt;So, there is no "Status" field in the Lookup, that's why it didn't map.&lt;BR /&gt;&lt;BR /&gt;I assume the field "&lt;SPAN&gt;Error_Code" is what you want to map with the "Status" from Query 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup blabla.csv Status as "Error_Code" OUTPUT Action&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 09:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-map-value-from-inputlookup-to-another-search/m-p/597554#M208050</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2022-05-12T09:22:21Z</dc:date>
    </item>
  </channel>
</rss>

