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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...