Knowledge Management

TA Linux Auditd for OCSF transforms has bugs

ivarny
Path Finder

The transforms to set sourcetypes has a bug.
The regex uses a capture group that is not used in the format statment.
When this is the case splunk does not return a match on the regex.
To get this to work it is neccessary to change the regex to a non-capturing group
e.g. for:

[auditdclasses2]
REGEX = type\=(ANOM_|USER_AVC|AVC|CRYPTO_REPLAY_USER|RESP)
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::linux:audit:ocsf:finding



must be change to 

REGEX = type\=(?:ANOM_|USER_AVC|AVC|CRYPTO_REPLAY_USER|RESP)



Then it works.
The same for the other auditdclasses1 - 6.

Labels (3)
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...