Splunk Enterprise Security

Normalize action field values

splunkcol
Builder

I have an index called firewall and sourcetypes of Palo Alto, Checkpoint and Fortinet routers

The configuration was carried out according to the documentation recommendations regarding recommended sourcertype and Add-on according to the vendor

The "action" type fields that are accepted have different names depending on the brand of the device

Those that are accepted are:

allowed
accept
Authorize
pass

Taking into account that "accept" and "allowed" mean the same thing, should I normalize them? or as they are already recognized by the correlation events that Splunk ES has created?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Aliases create new fields with different names, but the same values so they won't help normalize values.  Use eval.

 

EVAL action=if(action="accept" OR action="Authorize" OR action="pass", "allowed", action)

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Splunk ES expects normalized field values as documented in the Common Information Model (CIM).  The TAs for those sources should have normalized the fields for you, but if they did not (or you don't use TAs) then you'll have to do so.

---
If this reply helps you, Karma would be appreciated.

splunkcol
Builder

should I do it through aliases?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Aliases create new fields with different names, but the same values so they won't help normalize values.  Use eval.

 

EVAL action=if(action="accept" OR action="Authorize" OR action="pass", "allowed", action)

 

---
If this reply helps you, Karma would be appreciated.

splunkcol
Builder

@richgalloway  Last question, what is the correct way to normalize it in this case?

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Like with many things Splunk,there is more than one way to do it. The "correct" one is the one that works for you.
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...