<?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: Can I use lookup instead of join? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399179#M115737</link>
    <description>&lt;P&gt;Thanks alot&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 15:59:04 GMT</pubDate>
    <dc:creator>LxSenpai</dc:creator>
    <dc:date>2018-06-21T15:59:04Z</dc:date>
    <item>
      <title>Can I use lookup instead of join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399177#M115735</link>
      <description>&lt;P&gt;Hello guys&lt;BR /&gt;
So I have a table where there are Index and Role. In another table, there is Index and Description. So what I am trying to output is something like this below:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Role | Index | Description
1       | a_2 | World says hello back.
          |a_3| Hello 
2      |a_4| WOW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently using join the index fields are being joined. But is there a way to do the joining without Join but only lookup?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|mvexpand Indexes
|fields Index2, Indexes, Role

|join type=outer Indexes [ inputlookup index_info_lu | rename Index as Indexes]  &amp;lt;&amp;lt; here&amp;gt;&amp;gt;

| stats list(Indexes) as Indexes,list(Description) as Description by Role
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399177#M115735</guid>
      <dc:creator>LxSenpai</dc:creator>
      <dc:date>2018-06-21T13:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use lookup instead of join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399178#M115736</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search
|mvexpand Indexes
|fields Indexes, Role
| lookup index_info_lu Index as Indexes OUTPUT Description
| stats list(Indexes) as Indexes,list(Description) as Description by Role
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399178#M115736</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-06-21T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use lookup instead of join?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399179#M115737</link>
      <description>&lt;P&gt;Thanks alot&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-lookup-instead-of-join/m-p/399179#M115737</guid>
      <dc:creator>LxSenpai</dc:creator>
      <dc:date>2018-06-21T15:59:04Z</dc:date>
    </item>
  </channel>
</rss>

