All Apps and Add-ons

Why are the IP fields in the CIM data models defined as strings not IPv4 fields?

responsys_cm
Builder

All of the src and dest fields in the CIM Data Model app are defined as strings, not IPv4 addresses.

Why? And what does one lose or gain by defining any IP field as a string rather than an IPv4 address?

0 Karma

rpille_splunk
Splunk Employee
Splunk Employee

Using "string" as the type for ip fields in data models allows us to:
1. capture IPv6 information as well as IPv4
2. see data that's getting improperly or badly extracted into the ip fields when using the "| datamodel" or "| pivot" commands.

CIDR matching is possible on strings, so there's no clear downside. Do you have a use case that requires these to be typed as IPv4?

responsys_cm
Builder

No use case... I was just curious why there was a type for IPv4 but it wasn't used for src/dest.

Since you work for Splunk...

The Network Sessions data model uses src_ip/dest_ip. The Network Traffic model uses src/src_ip/dest/dest_ip. All the other ones use src/dest. These should be consistent across all data models.

Also... The Authentication data model's "action" field expects success/failure as the field values.

The Change Analysis data model's "action" field expects created/deleted/modified/updated/etc and the "status" field expects success/failure.

Using "action" in two different data models where the data model expects different values is a huge pain in the ass. It basically requires creating a field like "change_action" and then modifying the data model logic for the action field. I try to avoid modifying the data models if possible...

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 ...