<?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 to join my search to a lookup table with more than one field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168777#M48135</link>
    <description>&lt;P&gt;Perfect! Thanks (a month after you answered it!!)&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2015 15:12:17 GMT</pubDate>
    <dc:creator>ewanbrown</dc:creator>
    <dc:date>2015-01-20T15:12:17Z</dc:date>
    <item>
      <title>How to join my search to a lookup table with more than one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168775#M48133</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a search query that I need to join to a lookup table.&lt;/P&gt;

&lt;P&gt;I have it joining to this lookup table TestDec14 and working when I look up the NEW_ID field, but I also need to join to the ID_TYPE field&lt;/P&gt;

&lt;P&gt;index=test NEW_ID=123 OR NEW_ID= 456&lt;BR /&gt;&lt;BR /&gt;
      | lookup TestDec14 NEW_ID&lt;BR /&gt;
      | eval new_add=NEW_ID.",".address&lt;BR /&gt;&lt;BR /&gt;
      | chart count by new_add &lt;BR /&gt;
      | sort count desc&lt;/P&gt;

&lt;P&gt;Is this possible? If so do you have any syntax on how I would do this? I've tried a few options but none have worked&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168775#M48133</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2020-09-28T18:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to join my search to a lookup table with more than one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168776#M48134</link>
      <description>&lt;P&gt;Yes you can lookup from multiple fields.&lt;/P&gt;

&lt;P&gt;The syntax is:&lt;/P&gt;

&lt;P&gt;... | lookup YOUR_LOOKUP field1 fieldn OUTPUT column1 columnn&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your example it will be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test NEW_ID=123 OR NEW_ID= 456 
| lookup TestDec14 NEW_ID ID_TYPE OUTPUT
| eval new_add=NEW_ID.",".address 
| chart count by new_add 
| sort count desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Dec 2014 14:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168776#M48134</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2014-12-23T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to join my search to a lookup table with more than one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168777#M48135</link>
      <description>&lt;P&gt;Perfect! Thanks (a month after you answered it!!)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 15:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-my-search-to-a-lookup-table-with-more-than-one-field/m-p/168777#M48135</guid>
      <dc:creator>ewanbrown</dc:creator>
      <dc:date>2015-01-20T15:12:17Z</dc:date>
    </item>
  </channel>
</rss>

