<?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 2 lookup tables in one search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169454#M48420</link>
    <description>&lt;P&gt;I believe something like this should work. For wildcard to work on the lookup table, you need to create lookup definitions and set it to work with wildcard (&lt;A href="http://answers.splunk.com/answers/52580/can-we-use-wild-characters-in-lookup-table"&gt;see this&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=emailRecords | lookup ludef_emailDomains emailDomain as ToAddress | lookup ludef leavers.csv userName as &amp;lt;&amp;lt;userName field in your logs&amp;gt;&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Updated field names as per your data.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2014 15:41:58 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-08-04T15:41:58Z</dc:date>
    <item>
      <title>Using 2 lookup tables in one search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169453#M48419</link>
      <description>&lt;P&gt;Hi, trying to use two lookup tables in one search. Is this possible?&lt;/P&gt;

&lt;P&gt;Basically I have a list of email domains in one lookup table, and a list of users in another.  I want to produce a report (with my email data that has both user/email domain fields) for these certain users sending mail to these certain domains.  Is there any specific syntax I need to use? Won't see to work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=emailRecords, lookup tables are emailDomains.csv and leavers.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One thing to note is that I'm using wildcards in my emailDomains.csv....so the field "ToAddress" can look like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*gmail.com,
*yahoo.com, etc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169453#M48419</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-08-04T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 lookup tables in one search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169454#M48420</link>
      <description>&lt;P&gt;I believe something like this should work. For wildcard to work on the lookup table, you need to create lookup definitions and set it to work with wildcard (&lt;A href="http://answers.splunk.com/answers/52580/can-we-use-wild-characters-in-lookup-table"&gt;see this&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=emailRecords | lookup ludef_emailDomains emailDomain as ToAddress | lookup ludef leavers.csv userName as &amp;lt;&amp;lt;userName field in your logs&amp;gt;&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Updated field names as per your data.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 15:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169454#M48420</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-04T15:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 lookup tables in one search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169455#M48421</link>
      <description>&lt;P&gt;This is close...but I'm looking to show only these fields. If I use inputlookup, this works. But I need (if toAddress, bccAddress, or ccAddress) is in the lookup table, return the results. I can do this for one field (inputlookup Emaildomains | fields + toAddress)...but I want it to be any of the three fields&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169455#M48421</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-08-04T16:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using 2 lookup tables in one search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169456#M48422</link>
      <description>&lt;P&gt;You might want to add some sample log entries,format of your lookup files etc. Adding more details will help you get more accurate suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-2-lookup-tables-in-one-search/m-p/169456#M48422</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-04T16:24:21Z</dc:date>
    </item>
  </channel>
</rss>

