Knowledge Management

Why aren't field aliases working for CIM data?

ts46235
Engager

I am trying to map incoming events to CIM fields using aliases. I followed the documentation here —https://docs.splunk.com/Documentation/Splunk/7.1.3/Knowledge/Addaliasestofields— but it didn't work when I viewed the dataset's values. The docs don't even mention the "named" column so it makes me wonder if I"m doing it right.

I tried to create an alias for CIM app and my src_ip custom field (created in the web.web dataset) to src. When I view the dataset values from the "datasets" tab, or search: | from datamodel:"Web.Web", the src field value remains always as "unknown".

I created the same alias for the search app and it didnt work either. What am I doing wrong?

thanks

alt text

Tags (2)
0 Karma
1 Solution

ts46235
Engager

Problem ended up being the value for "named" field (see image above). It needed to equal the value that my events are being set to, "httpevent" (without quotes) as it appears in my events: sourcetype=httpevent, and it started working. Doh!

View solution in original post

ts46235
Engager

Problem ended up being the value for "named" field (see image above). It needed to equal the value that my events are being set to, "httpevent" (without quotes) as it appears in my events: sourcetype=httpevent, and it started working. Doh!

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @ts46235

I'm glad you figured out a solution to your problem. Would you mind elaborating on your answer and then approving it? That way, future users with the same issue can learn from you. Thanks!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...