All Apps and Add-ons

From exchange apps, there is a lookup ad_username that normalizes the logon name format, any example to show how it works.

daniel_splunk
Splunk Employee
Splunk Employee

From exchange apps, there is a lookup ad_username that normalizes the logon name format, any example to show how it works.

0 Karma

daniel_splunk
Splunk Employee
Splunk Employee

After install the splunk apps for microsoft exchange without any special customerization, Splunk have the following login username translation behavior.

    google\peter@google  >>> peter@google
    google/peter@google  >>> peter@google
    google\peter         >>> peter@google
    google/peter         >>> peter@google
    mary@yahoo           >>> mary@yahoo
    daniel               >>> daniel@UNKNOWN

From the above example, if the login username don't have domain, it will default to UNKNOWN.
This behavior can be changed by using domain_aliases.csv (under splunk_app_microsoft/exchange/local directory)

# cat domain_aliases.csv
UNKNOWN,LF-main.com
google,google-private-cloud.com

Once we add the above domain_aliases.csv, the login username translation become:

google/peter@google      >>> peter@google-private-cloud.com
daniel                   >>> daniel@LF-main.com

Now, we know how to change from one domain to another domain.
Splunk is also capable to append different domain to username provided that you know beforehand.

For example, if I want to make the following username login translation.

dragon       >>> dragon@china.com
jellyfish    >>> jellyfish@hongkong.com
lion         >>> animal@forest.com

You can do this by using the active_directory.csv file. Here is the setting.

# cat active_directory.csv
china.com,dragon,dragon
hongkong.com,jellyfish,jellyfish
forest.com,animal,lion

Finally, this is the search that you can use to quickly test and see the result.

index=_internal|head 1|eval cs_username = "lion"|lookup ad_username cs_username|table cs_username, user_subject

alt text

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...