<?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: Need help joining multisearch results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494654#M140530</link>
    <description>&lt;P&gt;This was resolved with the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="o365data" dataset_name=account_management AssignedLicense) OR (index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName earliest=0)
| dedup _time
| rex "(?P&amp;lt;NewLicenses&amp;gt;((?&amp;lt;=NewValue)(.*?)(?=OldValue)))" max_match=0
| rex "(?P&amp;lt;OldLicenses&amp;gt;((?&amp;lt;=OldValue)(.*?)(?=Name....AssignedPlan)))" max_match=0
| rex field="NewLicenses" "\[SkuName=(?P&amp;lt;New&amp;gt;[^,]*)" max_match=0
| rex field="OldLicenses" "\[SkuName=(?P&amp;lt;Old&amp;gt;[^,]*)" max_match=0
| eval emailadd=coalesce(ObjectId, userPrincipalName)
| eval 360dept=ad_department | rename 360dept as dept
| eval addept=department | rename addept as dept
| stats values(dept) as "Department", values(Old) as "Old", values(New) as "New", values(UserId) as "UserId" latest(CreationTime) as "Date/Time" by emailadd
| where UserId != "" AND Old != New
| rename Old as "Old License", New as "New License", emailadd as "Account Changed", UserId as "Administrator"
| sort - "Date/Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will extract the exchange account license changes from the "o365data" index and correlate the exchange account email address to an AD account email address to get the department data for the account. &lt;/P&gt;

&lt;P&gt;I hope this help anyone else trying to join mulisearch results.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 18:46:49 GMT</pubDate>
    <dc:creator>joeybroesky</dc:creator>
    <dc:date>2020-04-01T18:46:49Z</dc:date>
    <item>
      <title>Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494632#M140508</link>
      <description>&lt;P&gt;Need help with bringing together results in a multisearch. Need to match department data from AD to an email address from O365 data on 1 row for reporting.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;| multisearch &lt;BR /&gt;
[search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department]&lt;BR /&gt;
[search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ad_email]&lt;BR /&gt;
| table 360_email, ad_department&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494632#M140508</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-06-08T21:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494633#M140509</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;stats&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch [search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department] [search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ad_email] 
| stats values(*) as * by ad_email 
| table 360_email, ad_department
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494633#M140509</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-11T16:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494634#M140510</link>
      <description>&lt;P&gt;I tried it with stats but unfortunately only the ad_department fields are showing up in the table and not the 360_email data.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494634#M140510</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-09-30T04:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494635#M140511</link>
      <description>&lt;P&gt;&lt;CODE&gt;userPrincipalName&lt;/CODE&gt; and &lt;CODE&gt;ad_email&lt;/CODE&gt; is field?&lt;BR /&gt;
your query isn't readable why string isn't with double quote.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 21:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494635#M140511</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-11T21:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494636#M140512</link>
      <description>&lt;P&gt;Yup the &lt;CODE&gt;userPrincipalName&lt;/CODE&gt; is the field name identified as &lt;CODE&gt;ad_email&lt;/CODE&gt; for referencing in the second sub search.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 21:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494636#M140512</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-11T21:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494637#M140513</link>
      <description>&lt;P&gt;I also tried the following which only shows the email address from the second sub search and does not list the department from the first sub search.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| multisearch &lt;BR /&gt;
 [search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department] &lt;BR /&gt;
 [search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ObjectId | eval 360_department=ad_department] &lt;BR /&gt;
 | stats values(ad_department) as "Department" by 360_email&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 21:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494637#M140513</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-11T21:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494638#M140514</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName=*) OR ( index="o365data" dataset_name=account_management AssignedLicense=*) 
| eval 360_email=coalesce(ObjectId, userPrincipalName )
| stats values(department) as ad_department by 360_email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ConditionalFunctions#coalesce.28X.2C....29"&gt;coalesce&lt;/A&gt; works to attach separate fields.&lt;BR /&gt;
At this time, &lt;CODE&gt;ObjectID&lt;/CODE&gt; from AD and &lt;CODE&gt;userPrincipalName&lt;/CODE&gt; from o365data makes to &lt;CODE&gt;360_emal&lt;/CODE&gt;.&lt;BR /&gt;
How about this?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 22:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494638#M140514</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-11T22:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494639#M140515</link>
      <description>&lt;P&gt;In the original question, &lt;CODE&gt;eval 360_email=ad_email&lt;/CODE&gt; was used. which means only ad_email needed to be used in &lt;CODE&gt;stats&lt;/CODE&gt;.  The solution is to use &lt;CODE&gt;rename&lt;/CODE&gt; or &lt;CODE&gt;eval&lt;/CODE&gt; in the subsearches to ensure both of them return the same field name for email.  Use the common field name in &lt;CODE&gt;stats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494639#M140515</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-12T12:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494640#M140516</link>
      <description>&lt;P&gt;Thanks for your input Rich. My apologies as I'm new to Splunk but would you be able to provide an example please? I'm struggling with getting it to work.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 16:10:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494640#M140516</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-12T16:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494641#M140517</link>
      <description>&lt;P&gt;Thanks to4kawa but this only returns the email and department from the first search. We were using that as a test search to learn how to bring fields from the 2 searches together based on the email address. We are looking to pull the department field from AD for a specific email address on O365. Below is the 2 original searches that we are trying to incorporate.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;## Get Exchange License Data ##&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;index="o365data" dataset_name=account_management AssignedLicense&lt;BR /&gt;
| spath "ModifiedProperties{}" | search *&lt;BR /&gt;
| dedup _time&lt;BR /&gt;
| rex "(?P((?&amp;lt;=NewValue)(.*?)(?=OldValue)))" max_match=0&lt;BR /&gt;
| rex "(?P((?&amp;lt;=OldValue)(.*?)(?=Name....AssignedPlan)))" max_match=0&lt;BR /&gt;
| rex field="NewLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| rex field="OldLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| table _time, ObjectId, Old, New, UserId&lt;BR /&gt;
| rename New as "New License Applied", Old as "Old License Applied", UserId as "Administrator Making Change", ObjectId as "Account Changed"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;## Get AD Department ##&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;index="activedirectory" (userPrincipalName=*)&lt;BR /&gt;
| table userPrincipalName, department&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 19:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494641#M140517</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-12T19:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494642#M140518</link>
      <description>&lt;P&gt;your &lt;CODE&gt;rex&lt;/CODE&gt; can't work&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Please check your post.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;this only returns the email and department from the first search&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;your original query has &lt;CODE&gt;| eval 360_email=ad_email&lt;/CODE&gt;.&lt;BR /&gt;
This means make &lt;CODE&gt;ad_email&lt;/CODE&gt; field's value into &lt;CODE&gt;360_email&lt;/CODE&gt; field. &lt;/P&gt;

&lt;P&gt;My query &lt;CODE&gt;| eval 360_email=coalesce(ad_email,userPrincipalName )&lt;/CODE&gt; is&lt;BR /&gt;
AD's userPrincipalName and o365data's ad_email both are same &lt;CODE&gt;360_email&lt;/CODE&gt;&lt;BR /&gt;
Really? Doesn't index="o365data" have &lt;CODE&gt;ad_email&lt;/CODE&gt; field?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494642#M140518</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-30T04:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494643#M140519</link>
      <description>&lt;P&gt;Here's an example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch [search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department, email=ad_email] [search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ObjectId | eval 360_department=ad_department, email=360_email] | stats values(ad_department) as "Department" by email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's another example that uses the &lt;CODE&gt;coalesce&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch [search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department] [search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ObjectId | eval 360_department=ad_department] 
| eval email = coalesce(360_email, ad_email)
| stats values(ad_department) as "Department" by email
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Mar 2020 12:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494643#M140519</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-13T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494644#M140520</link>
      <description>&lt;P&gt;The rex does work but do you mean the rex won't work in the multisearch?&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;index="o365data"&lt;/CODE&gt; has&lt;CODE&gt;ObjectId&lt;/CODE&gt; as the field for email and &lt;CODE&gt;index="activedirectory"&lt;/CODE&gt; has &lt;CODE&gt;userPrincipalName&lt;/CODE&gt; as the field for email. I was trying to point one to the other using &lt;CODE&gt;360_email=ad_email&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Sorry still very new to Splunk and trying to learn the SPL.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 13:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494644#M140520</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-13T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494645#M140521</link>
      <description>&lt;P&gt;In your comment:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex "(?P((?&amp;lt;=NewValue)(.*?)(?=OldValue)))" max_match=0 | rex "(?P((?&amp;lt;=OldValue)(.*?)(?=Name....AssignedPlan)))" max_match=0 | rex field="NewLicenses" "\[SkuName=(?P[^,]*)" max_match=0 | rex field="OldLicenses" "\[SkuName=(?P[^,]*)" max_match=0 | 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Some strings are missing. my answer is updated.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 20:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494645#M140521</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-13T20:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494646#M140522</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="activedirectory" AND objectCategory="CN=Person*" AND sAMAccountType="805306368" AND userAccountControl!="514" AND "userPrincipalName")
OR (index="o365data" AND dataset_name="account_management" AND "AssignedLicense")
| eval 360_email = coalesce(360_email, ad_email)
| stats values(department) AS ad_department BY 360_email
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Mar 2020 21:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494646#M140522</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-13T21:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494647#M140523</link>
      <description>&lt;P&gt;Thanks for your help Rich! I think we almost have what we need. Using your examples, I reconstructed our search as follows but it does not show the department.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| multisearch&lt;BR /&gt;
[search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department | rename ad_email as email]&lt;BR /&gt;
[search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ObjectId | eval 360_department=ad_department | rename 360_email as email]&lt;BR /&gt;
| spath "ModifiedProperties{}" | search *&lt;BR /&gt;
| dedup _time&lt;BR /&gt;
| rex "(?P((?&amp;lt;=NewValue)(.*?)(?=OldValue)))" max_match=0&lt;BR /&gt;
| rex "(?P((?&amp;lt;=OldValue)(.*?)(?=Name....AssignedPlan)))" max_match=0&lt;BR /&gt;
| rex field="NewLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| rex field="OldLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| stats values(ad_department) as "Department" by email, Old, New, UserId&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If I remove &lt;CODE&gt;, Old, New, UserId&lt;/CODE&gt; as shown below it matches them up. Am I missing something?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| multisearch&lt;BR /&gt;
[search index="activedirectory" objectCategory="CN=Person*" AND sAMAccountType=805306368 AND userAccountControl!=514 AND userPrincipalName | eval ad_email=userPrincipalName | eval ad_department=department | rename ad_email as email]&lt;BR /&gt;
[search index="o365data" dataset_name=account_management AssignedLicense | eval 360_email=ObjectId | eval 360_department=ad_department | rename 360_email as email]&lt;BR /&gt;
| spath "ModifiedProperties{}" | search *&lt;BR /&gt;
| dedup _time&lt;BR /&gt;
| rex "(?P((?&amp;lt;=NewValue)(.*?)(?=OldValue)))" max_match=0&lt;BR /&gt;
| rex "(?P((?&amp;lt;=OldValue)(.*?)(?=Name....AssignedPlan)))" max_match=0&lt;BR /&gt;
| rex field="NewLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| rex field="OldLicenses" "\[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| stats values(ad_department) as "Department" by email&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;We need to see &lt;STRONG&gt;_time&lt;/STRONG&gt;, &lt;STRONG&gt;ObjectId&lt;/STRONG&gt;, &lt;STRONG&gt;Old&lt;/STRONG&gt;, &lt;STRONG&gt;New&lt;/STRONG&gt;, &lt;STRONG&gt;UserId&lt;/STRONG&gt; in the output.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 21:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494647#M140523</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-13T21:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494648#M140524</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;... | stats  values(ad_department) as "Department", values(Old) as Old, values(New) as New, values(UserId) as UserId by email&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 12:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494648#M140524</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-16T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494649#M140525</link>
      <description>&lt;P&gt;&lt;CODE&gt;... | stats  values(ad_department) as "Department", values(Old) as Old, values(New) as New, values(UserId) as UserId by email&lt;/CODE&gt; outputs the &lt;CODE&gt;email&lt;/CODE&gt; and &lt;CODE&gt;ad_department&lt;/CODE&gt; values but the other fields are blank. It is also listing &lt;STRONG&gt;all&lt;/STRONG&gt; email addresses found in the &lt;CODE&gt;activedirectory&lt;/CODE&gt; index with their respective department. Our goal is to match all the email addresses found in the &lt;CODE&gt;o365data&lt;/CODE&gt; index and match them to an email/department in the &lt;CODE&gt;activedirectory&lt;/CODE&gt; index and output a department for the addresses found in &lt;CODE&gt;o365data&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats values(ad_department) as "Department" by email, Old, New, UserId&lt;/CODE&gt; shows everything we need minus the department data. I've tried re-arranging the stats command but cant seem to figure out how to bring it all together.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 14:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494649#M140525</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-16T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494650#M140526</link>
      <description>&lt;P&gt;Make sure the Old and New fields have values.  I'm not seeing where those fields are set in the query so they must be defined in the data somewhere.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494650#M140526</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-17T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help joining multisearch results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494651#M140527</link>
      <description>&lt;P&gt;They do have values which we verified they do show. Those fields are being defined in the rex field commands.  For some reason the copy/paste doesn't show up in the comment properly.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 19:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-joining-multisearch-results/m-p/494651#M140527</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-03-17T19:18:07Z</dc:date>
    </item>
  </channel>
</rss>

