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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...