<?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 to combine information from 2 different sources like sourcetype=eea:loghandler and lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492960#M137495</link>
    <description>&lt;P&gt;I am interested for an inner join after email.users_with_email = eea:loghandler.user&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:51:14 GMT</pubDate>
    <dc:creator>silviuchiric76</dc:creator>
    <dc:date>2020-09-30T03:51:14Z</dc:date>
    <item>
      <title>How to combine information from 2 different sources like sourcetype=eea:loghandler and lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492959#M137494</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;

&lt;P&gt;I have 2 data sources: logs forwared to the server as :&lt;BR /&gt;
sourcetype=eea:loghandler &lt;BR /&gt;
and lookup definition file as users_with_email&lt;BR /&gt;&lt;BR /&gt;
file&lt;BR /&gt;
called users_with_email.csv&lt;/P&gt;

&lt;P&gt;I have a key field in both sources the same:&lt;BR /&gt;
in sourcetype=eea:loghandler is called user with values like &lt;A href="mailto:firstname.lastname@domain.com" target="_blank"&gt;firstname.lastname@domain.com&lt;/A&gt; &lt;BR /&gt;
and in  lookup definition file I have email  field, same value &lt;A href="mailto:firstname.lastname@domain.com" target="_blank"&gt;firstname.lastname@domain.com&lt;/A&gt; &lt;BR /&gt;
and this is the case for all users&lt;/P&gt;

&lt;P&gt;I need to get an aggregated reports of users from&lt;BR /&gt;&lt;BR /&gt;
sourcetype=eea:loghandler  by joining the department field from  lookup definition file users_with_email(users_with_email.csv)&lt;/P&gt;

&lt;P&gt;When I try to make an OR:&lt;BR /&gt;
sourcetype=eea:loghandler OR inputlookup users_with_email &lt;BR /&gt;
got no results&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492959#M137494</guid>
      <dc:creator>silviuchiric76</dc:creator>
      <dc:date>2020-09-30T03:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine information from 2 different sources like sourcetype=eea:loghandler and lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492960#M137495</link>
      <description>&lt;P&gt;I am interested for an inner join after email.users_with_email = eea:loghandler.user&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492960#M137495</guid>
      <dc:creator>silviuchiric76</dc:creator>
      <dc:date>2020-09-30T03:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine information from 2 different sources like sourcetype=eea:loghandler and lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492961#M137496</link>
      <description>&lt;P&gt;Hi @silviuchiric76,&lt;BR /&gt;
you should try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=eea:loghandler
| lookup users_with_email.csv email AS user OUTPUT department
| dedup user
| sort user
| table user department
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A little hint: use always index in your searches to have faster results!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 14:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-information-from-2-different-sources-like/m-p/492961#M137496</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-30T14:34:14Z</dc:date>
    </item>
  </channel>
</rss>

