All Apps and Add-ons

Update regex in transforms.conf for extract_recipient_domain & extract_src_user_domain

colinjb
New Member

All, 

I am currently working with Splunk Add-on for Microsoft Office 365.  The default regex in transforms.conf for extract_src_user_domain and extract_recipient_domain will only extract the last two parts of an email domain, resulting in domains like bank.co.in returning as co.in 

Current
[extract_src_user_domain]
SOURCE_KEY = ExchangeMetaData.From
REGEX = (?<SrcUserDomain>[a-zA-Z]*\.[a-zA-Z]*$)

[extract_recipient_domain]
SOURCE_KEY = ExchangeMetaData.To{}
REGEX = (?<RecipientDomain>[a-zA-Z]*\.[a-zA-Z]*$)
MV_ADD = true

Suggest updating it to be inline with messagetrace rex
[extract_messagetrace_src_user_domain]
SOURCE_KEY = SenderAddress
REGEX = @(?<src_user_domain>\S*)

[extract_messagetrace_recipient_domain]
SOURCE_KEY = RecipientAddress
REGEX = @(?<recipient_domain>\S*)

Thanks, 
0 Karma

Meett
Splunk Employee
Splunk Employee

Agree with @richgalloway This should be highlighted to Support as its Splunk Supported Add-on.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That is a Splunk-supported app so the best way to report a failure like this is to file a case with Splunk Support.

If you do not have a support entitlement, submit it at https://ideas.splunk.com.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...