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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...