Getting Data In

Why does FIELDALIAS work or doesn't depending on the name of the definition?

bowesmana
SplunkTrust
SplunkTrust

I have a field extracted with transforms called Parent_Process.

I set up a field alias Parent_Process as parent_process

If I name the alias as anything alphabetically up to "parent_process" the alias does not work. If I name the alias anything from "parent_procest" (replace last s with t), or any other name alphabetically later than "parent_process" (tried about 5 variants), then it DOES work.

There is only this SINGLE alias - it has global scope. btool with app context showing list of props, does not seem to show anything different other than the name of the alias...

I thought aliases were done after transforms, so just can't understand why this happens like this.

Any idea what I am missing?

 

Labels (3)
0 Karma
1 Solution

Brett
SplunkTrust
SplunkTrust

If the sourcetype is WinEventLog and you have Splunk_TA_windows installed, then there is a conflicting field alias named parent_process_for_windows, so the naming of your alias definition either puts you before or after it during the runtime after merge. If the TA used ASNEW this may not have been an issue, but it uses AS so overwrites the field.

This would be why changing the namespace impacts the field alias working.

FIELDALIAS-parent_process_for_windows = Creator_Process_Name AS parent_process

View solution in original post

Brett
SplunkTrust
SplunkTrust

If the sourcetype is WinEventLog and you have Splunk_TA_windows installed, then there is a conflicting field alias named parent_process_for_windows, so the naming of your alias definition either puts you before or after it during the runtime after merge. If the TA used ASNEW this may not have been an issue, but it uses AS so overwrites the field.

This would be why changing the namespace impacts the field alias working.

FIELDALIAS-parent_process_for_windows = Creator_Process_Name AS parent_process

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...