<?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: Passing Variable to Inputlookup in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488270#M8148</link>
    <description>&lt;P&gt;This worked perfectly!&lt;BR /&gt;
Thanks a lot for your prompt response...&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 16:25:55 GMT</pubDate>
    <dc:creator>geekf</dc:creator>
    <dc:date>2020-04-28T16:25:55Z</dc:date>
    <item>
      <title>Passing Variable to Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488268#M8146</link>
      <description>&lt;P&gt;I am running a query to find the list of users that received an email from a particular email address. This is working fine until I try to get more details by using Inputlookup. I want to use Inputlookup to get more details about the users like their department, location, etc which can only be done through that. I need to pass the results from the search to get the other details. The search lists all the userids since I strip out the domain by using the regex.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcettype=sendmail to=* &lt;BR /&gt;
    [ search sourcetype=sendmail from=email@gmail.com &lt;BR /&gt;
    | fields qid] &lt;BR /&gt;
| rex field=orig_recipient "(?[^@]+)" &lt;BR /&gt;
| dedup orig_recipient &lt;BR /&gt;
| inputlookup append=t identity_lookup_expanded where * identity=$orig_recipient$] &lt;BR /&gt;
| table orig_recipient dept email some other fields&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488268#M8146</guid>
      <dc:creator>geekf</dc:creator>
      <dc:date>2020-04-28T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variable to Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488269#M8147</link>
      <description>&lt;P&gt;The &lt;CODE&gt;$&lt;/CODE&gt; operator only applies in the &lt;CODE&gt;map&lt;/CODE&gt; command and when referencing inputs to a dashboard.&lt;BR /&gt;
Why use &lt;CODE&gt;inputlookup&lt;/CODE&gt; here?  Why not &lt;CODE&gt;lookup identity_lookup_expanded email as orig_recipient OUTPUT bunit, work_city, work_country&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488269#M8147</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-28T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Variable to Inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488270#M8148</link>
      <description>&lt;P&gt;This worked perfectly!&lt;BR /&gt;
Thanks a lot for your prompt response...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Passing-Variable-to-Inputlookup/m-p/488270#M8148</guid>
      <dc:creator>geekf</dc:creator>
      <dc:date>2020-04-28T16:25:55Z</dc:date>
    </item>
  </channel>
</rss>

