Splunk Enterprise Security

Add result of eval to datamodel field

tiaatim
Path Finder

I have a search that evals out a calculation from other fields to a "Duration" field for netflow data.  Is there a way to populate duration in the network traffic datamodel with the results of the calculation?  It currently has firewall data in it but I'd like to add netflow as well.

Thanks!

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
Searches can't modify data models. You can, however, add a calculated field to the DM.
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust
Searches can't modify data models. You can, however, add a calculated field to the DM.
---
If this reply helps you, Karma would be appreciated.

tiaatim
Path Finder

I was thinking about that, but the field already exists in the DM though so I don't want to modify how it is populated for our firewall logs.  If I turned that field into a calculated field then the existing duration value in the FW data would be lost and wouldn't populate the field with fw logs right?

0 Karma

richgalloway
SplunkTrust
SplunkTrust
That's true if you use the same name for two fields. Workaround is to use a different name for the netflow field.
---
If this reply helps you, Karma would be appreciated.
0 Karma

tiaatim
Path Finder

I thought about that too but then the datamodel wouldn't populate and the data wouldn't be CIM compliant.  

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...