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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...