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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...