<?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: Using lookup tables and searching it twice in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190316#M54783</link>
    <description>&lt;P&gt;I think something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..search | fields username
| lookup userlookup username OUTPUT manager
| lookup userlookup username as manager OUTPUT emailaddress
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since you have the manager name in the lookup table, it may be a good idea to just include an additional field with the manager's email. &lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2013 15:14:18 GMT</pubDate>
    <dc:creator>sc0tt</dc:creator>
    <dc:date>2013-12-26T15:14:18Z</dc:date>
    <item>
      <title>Using lookup tables and searching it twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190315#M54782</link>
      <description>&lt;P&gt;We have a user lookup table that contains information such as username, email, and managername.  I can do a lookup to find a user's managername.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup userlookup | search username="bob" | fields username, email, manager
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From that I would like to get the email address for the manager.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup userlookup | search username="bob"| fields manager | rename manager AS empManager | search [| inputlookup userlookup username=empManager]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which doesn't work because the syntax is all screwed up (and I'm not good with lookup tables).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 14:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190315#M54782</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-12-26T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup tables and searching it twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190316#M54783</link>
      <description>&lt;P&gt;I think something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..search | fields username
| lookup userlookup username OUTPUT manager
| lookup userlookup username as manager OUTPUT emailaddress
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since you have the manager name in the lookup table, it may be a good idea to just include an additional field with the manager's email. &lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 15:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190316#M54783</guid>
      <dc:creator>sc0tt</dc:creator>
      <dc:date>2013-12-26T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup tables and searching it twice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190317#M54784</link>
      <description>&lt;P&gt;Thank you.  That worked.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 15:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-tables-and-searching-it-twice/m-p/190317#M54784</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-12-26T15:40:21Z</dc:date>
    </item>
  </channel>
</rss>

