<?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: Possible to extract same value from different fields in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382233#M68914</link>
    <description>&lt;P&gt;Thx for the extracts.&lt;/P&gt;

&lt;P&gt;My dashboard is currently set up to use 'user' as the value as my Shib and Duo logs have the user field. My message trace logs does not have the 'user' field, but 'src_user' instead. If I set the extracts you graciously provided, will this nullify the Email CIM data model of using 'src_user'?&lt;/P&gt;

&lt;P&gt;Thx &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:17:03 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2020-09-30T01:17:03Z</dc:date>
    <item>
      <title>Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382227#M68908</link>
      <description>&lt;P&gt;For Exchange message trace logs I am extracting the user as following in the props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-user = "RecipientAddress":"(?&amp;lt;user&amp;gt;\S+)@
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would also like to extract the user from the SenderAddress as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-user = "SenderAddress":"(?&amp;lt;user&amp;gt;\S+)@
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I extract from two different fields for the user field, or will this potentially cause confusion?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382227#M68908</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-07-09T15:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382228#M68909</link>
      <description>&lt;P&gt;It might make more sense to put one in src_user and the other in user. Or better yet, have a look at the definition for the CIM Email data model: &lt;A href="https://docs.splunk.com/Documentation/CIM/4.13.0/User/Email" target="_blank"&gt;https://docs.splunk.com/Documentation/CIM/4.13.0/User/Email&lt;/A&gt; and adhere to that.&lt;/P&gt;

&lt;P&gt;If you really want to generate a multi-valued field user, with both sender and recipient(s), extract each into a separate field (e.g. s_user and r_user) and then do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-user = mvappend(s_user,r_user)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or use a REPORT extraction like this:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REPORT-user = exchange-user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[exchange-user]
REGEX = "(?:RecipientAddress|SenderAddress)":"(?&amp;lt;user&amp;gt;\S+)@
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382228#M68909</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-09-30T01:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382229#M68910</link>
      <description>&lt;P&gt;Frank,&lt;/P&gt;

&lt;P&gt;Thx for the reply and info.&lt;/P&gt;

&lt;P&gt;What I'm trying to do is leverage the message trace logs for a dashboard that is pulling from two other log sources, Duo and Shibboleth, that have 'user' defined as their user field, which is my main input field.&lt;/P&gt;

&lt;P&gt;Would it make sense to make an alias for src_user in the message trace logs to 'user' so my dashboard would work across all three log sources?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 17:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382229#M68910</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-07-09T17:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382230#M68911</link>
      <description>&lt;P&gt;I would do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-user = "RecipientAddress":"(?&amp;lt;user_recipient&amp;gt;\S+)@
EXTRACT-user = "SenderAddress":"(?&amp;lt;user_sender&amp;gt;\S+)@
EVAL-user = mvappend(user_recipient, user_sender)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382230#M68911</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-09T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382231#M68912</link>
      <description>&lt;P&gt;You can also resolve that in your dashboard query, by renaming the relevant fields in your search, to make them line up. How exactly to best do that depends on what exactly you want to achieve.&lt;/P&gt;

&lt;P&gt;I'm not a big fan of putting very different data (sender and receiver) in 1 field, that is bound to lead to confusion. Especially since it is not compliant with the CIM Email data model.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 06:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382231#M68912</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-10T06:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382232#M68913</link>
      <description>&lt;P&gt;Thx for the feedback. I also am not a fan of changing the CIM email data model as well.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382232#M68913</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-07-11T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382233#M68914</link>
      <description>&lt;P&gt;Thx for the extracts.&lt;/P&gt;

&lt;P&gt;My dashboard is currently set up to use 'user' as the value as my Shib and Duo logs have the user field. My message trace logs does not have the 'user' field, but 'src_user' instead. If I set the extracts you graciously provided, will this nullify the Email CIM data model of using 'src_user'?&lt;/P&gt;

&lt;P&gt;Thx &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382233#M68914</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-09-30T01:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382234#M68915</link>
      <description>&lt;P&gt;You are free to change &lt;CODE&gt;EVAL-user&lt;/CODE&gt; to &lt;CODE&gt;EVAL-src_user&lt;/CODE&gt; or &lt;CODE&gt;EVAL-some_other_field_name&lt;/CODE&gt; and it will work that way.  If you keep it as-is, it will override any existing value of &lt;CODE&gt;user&lt;/CODE&gt; for this sourcetype.&lt;/P&gt;

&lt;P&gt;If you would like to &lt;EM&gt;prefer&lt;/EM&gt; any existing value, then use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; EVAL-user = coalesce(user, mvappend(user_recipient, user_sender))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you would like to keep &lt;EM&gt;both&lt;/EM&gt; any existing value and this new value, then use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-user = mvappend(user, user_recipient, user_sender)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This covers all possible desires.  Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382234#M68915</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-11T14:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to extract same value from different fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382235#M68916</link>
      <description>&lt;P&gt;Thx for the various breakdowns&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 14:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Possible-to-extract-same-value-from-different-fields-in-props/m-p/382235#M68916</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-07-11T14:39:37Z</dc:date>
    </item>
  </channel>
</rss>

