<?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 Join two searches based on lookup values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400983#M116132</link>
    <description>&lt;P&gt;Thanks for the prompt response folks, however I'm looking to return calculated values from both indexes. I'll create another question to include it.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 05:30:48 GMT</pubDate>
    <dc:creator>ADRIANODL</dc:creator>
    <dc:date>2019-02-19T05:30:48Z</dc:date>
    <item>
      <title>How do you Join two searches based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400980#M116129</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;I have 2 searches that return equivalent values based on the result of a lookup, as such:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Search 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=alpha tag=email SenderAddress=*@domain.com 
| table *Email_Address*, Name 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Search 2&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=alpha sourcetype="activities"
| spath
| search "tags{}.category_id"=USBTFR
|rex field=User_Name "(?\w{3,6})" 
|eval User_Name=upper(User_Name) 
|lookup tablename LogonID as User_Name OUTPUT *EmailAddress*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I join the result of the two searches based on the EmailAddress field?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 04:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400980#M116129</guid>
      <dc:creator>ADRIANODL</dc:creator>
      <dc:date>2019-02-19T04:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you Join two searches based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400981#M116130</link>
      <description>&lt;P&gt;Does using  &lt;CODE&gt;|join EmailAddress&lt;/CODE&gt; not provide the search you want?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 04:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400981#M116130</guid>
      <dc:creator>bangalorep</dc:creator>
      <dc:date>2019-02-19T04:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you Join two searches based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400982#M116131</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=alpha ((tag=email SenderAddress=*@domain.com) OR (index=alpha sourcetype="activities"))
| spath
| search "tags{}.category_id"=USBTFR OR (tag=email SenderAddress=*@domain.com)
| rex field=User_Name "(?\w{3,6})" 
| eval User_Name=upper(User_Name) 
| lookup tablename LogonID AS User_Name OUTPUT EmailAddressOther
| eval EmailAddress=coalesce(EmailAddress, EmailAddressOther)
| fields - EmailAddressOther And Perhaps Other Fields Too
| stats values(*) AS * BY EmailAddress
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 04:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400982#M116131</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-19T04:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you Join two searches based on lookup values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400983#M116132</link>
      <description>&lt;P&gt;Thanks for the prompt response folks, however I'm looking to return calculated values from both indexes. I'll create another question to include it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 05:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-Join-two-searches-based-on-lookup-values/m-p/400983#M116132</guid>
      <dc:creator>ADRIANODL</dc:creator>
      <dc:date>2019-02-19T05:30:48Z</dc:date>
    </item>
  </channel>
</rss>

