<?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 Lookup multiple values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125167#M33820</link>
    <description>&lt;P&gt;So I'm doing a lookup for multiple values, so similar to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| lookup entity OUTPUT x as XX y as YY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I do this with multiple values. Like instead would it be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| lookup entity OUTPUT x as XX AND y as YY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However I have tried both and neither has worked. Any ideas? Thanks!!!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2014 21:00:10 GMT</pubDate>
    <dc:creator>edschembor</dc:creator>
    <dc:date>2014-06-30T21:00:10Z</dc:date>
    <item>
      <title>Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125167#M33820</link>
      <description>&lt;P&gt;So I'm doing a lookup for multiple values, so similar to the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| lookup entity OUTPUT x as XX y as YY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I do this with multiple values. Like instead would it be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| lookup entity OUTPUT x as XX AND y as YY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However I have tried both and neither has worked. Any ideas? Thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125167#M33820</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2014-06-30T21:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125168#M33821</link>
      <description>&lt;P&gt;You can list as many lookup and output fields as you like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup &amp;lt;lookup-table-name&amp;gt; &amp;lt;lookup-field1&amp;gt; AS &amp;lt;local-field1&amp;gt;, &amp;lt;lookup-field2&amp;gt; AS &amp;lt;local-field2&amp;gt; OUTPUT &amp;lt;lookup-destfield1&amp;gt; AS &amp;lt;local-destfield1&amp;gt;, &amp;lt;lookup-destfield2&amp;gt; AS &amp;lt;local-destfield2&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No need to link them with &lt;CODE&gt;AND&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2014 22:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125168#M33821</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-30T22:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125169#M33822</link>
      <description>&lt;P&gt;This doesnt work. I get: "Error in 'lookup' command: Could not find all of the specified destination fields in the lookup table."&lt;/P&gt;

&lt;P&gt;My lookup now looks like: &lt;/P&gt;

&lt;P&gt;| lookup local=1 XXX_Lookup_2 EntityKey OUTPUT Paymenttransactionkey as Paymenttranstemp, EntityKey OUTPUT DISPLAYTRANSACTIONID as OPICTemp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125169#M33822</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2020-09-28T16:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125170#M33823</link>
      <description>&lt;P&gt;You don't need the second "EntityKey OUTPUT" thing. This should work just fine. (see the syntax mentioned in @martin's answer.&lt;/P&gt;

&lt;P&gt;| lookup local=1 XXX_Lookup_2 EntityKey OUTPUT Paymenttransactionkey as Paymenttranstemp, DISPLAYTRANSACTIONID as OPICTemp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125170#M33823</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125171#M33824</link>
      <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125171#M33824</guid>
      <dc:creator>edschembor</dc:creator>
      <dc:date>2014-07-01T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup multiple values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125172#M33825</link>
      <description>&lt;P&gt;Hi martin_mueller,&lt;/P&gt;

&lt;P&gt;What should be the query if we need to perform the search on same local-field?&lt;/P&gt;

&lt;P&gt;lookup &lt;EM&gt;lookup-table-name&lt;/EM&gt; lookup-field1 AS local-field1, lookup-field2 AS local-field1 &lt;BR /&gt;
OUTPUT lookup-field1, lookup-field2, lookup-field3 &lt;/P&gt;

&lt;P&gt;Here lookup-field3 is corresponding field in lookup table.&lt;BR /&gt;
I have tried the above format, but it says no results found!!&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-multiple-values/m-p/125172#M33825</guid>
      <dc:creator>srujan9292</dc:creator>
      <dc:date>2017-07-05T19:45:22Z</dc:date>
    </item>
  </channel>
</rss>

