<?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: Matching value from two multi-value field in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463119#M6750</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;....
| stats values(recipient) as recipient count by _time sender 
| mvexpand recipient
| eval recipient=lower(recipient)
| lookup users email AS recipient OUTPUT id
| mvexpand id
| lookup users id OUTPUT type first last
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you provide sample jpg, more clearly.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 06:53:09 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-02T06:53:09Z</dc:date>
    <item>
      <title>Matching value from two multi-value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463118#M6749</link>
      <description>&lt;P&gt;I am working with MS-Exchange data. I am taking recipient email value and matching with user lookup for other details. Same email have multiple matching values in lookup table. I want only matching records in same row, instead of repeating it.&lt;/P&gt;

&lt;P&gt;Ex.: I have an email &lt;A href="mailto:xyz@abc.com"&gt;xyz@abc.com&lt;/A&gt; in log. I have 3 records matching in user lookup like below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; email      first  last   id    type
xyz@abc.com  Ram   Singh  1001   T
xyz@abc.com  Ram   Singh  1042   C
xyz@abc.com  Ram   Singh  1063   T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using below line to match recipient value and get other details from lookup.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(recipient) as recipient count by _time sender 
| mvexpand recipient
| eval recipient=lower(recipient)
| lookup users email AS recipient OUTPUT id type first last
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting output like below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sender       recipient     id    type    first  last 
abc@xyz.com  xyz@abc.com   1001   T      Ram   Singh
                           1042   C      
                           1063   T      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am expecting result like this, so that i can perform some conditional action.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sender       recipient     id    type    first  last 
abc@xyz.com  xyz@abc.com   1001   T      Ram   Singh
abc@xyz.com  xyz@abc.com   1042   C      Ram   Singh
abc@xyz.com  xyz@abc.com   1063   T      Ram   Singh 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I am using mvexpand command, it's providing wrong output rows.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 06:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463118#M6749</guid>
      <dc:creator>twh1</dc:creator>
      <dc:date>2020-04-02T06:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Matching value from two multi-value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463119#M6750</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;....
| stats values(recipient) as recipient count by _time sender 
| mvexpand recipient
| eval recipient=lower(recipient)
| lookup users email AS recipient OUTPUT id
| mvexpand id
| lookup users id OUTPUT type first last
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you provide sample jpg, more clearly.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 06:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463119#M6750</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-02T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Matching value from two multi-value field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463120#M6751</link>
      <description>&lt;P&gt;Hi @to4kawa ,&lt;BR /&gt;
I have multi value field not NULL value field. If i have only 1 multi-value field, I can use mvexpand and get the output. But I have multiple multi -value field, for which I need row with respective value. &lt;/P&gt;

&lt;P&gt;I have made little change in output now. Hope this will bring more clarity to my question.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 08:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Matching-value-from-two-multi-value-field/m-p/463120#M6751</guid>
      <dc:creator>twh1</dc:creator>
      <dc:date>2020-04-02T08:04:59Z</dc:date>
    </item>
  </channel>
</rss>

