Getting Data In

Transform at Index

baumerr
New Member

I am attempting to build a exporting field that ArcSight can use to properly categorize. Here what I got:

transform.conf
[devClassName]
REGEX = ($m)EventCode=(\d+)
FORMAT = devClassID::Microsoft-Windows-security-auditing:$1
WRITE_META = true

props.conf
[WinEventLog:Security]
TRANSFORMS-DevExtract = devClassName

fields.conf
[devClassID]
INDEXED = true

I need the result to be: Microsoft-Windows-security-auditing:4663 were as 4663 is pulled from EventCode in Splunk.

I have tried to build the transform just on my search forwarder, but it does not allow me to use the var $1

0 Karma

hunters_splunk
Splunk Employee
Splunk Employee

Hi baumerr,

Seems the regex in your [devClassName] stanza is incorrect. Should be:

REGEX = (?m)^EventCode=(\d+)

The (?m)^ in the REGEX indicates a multi-line event that starts with EventCode. Please try again using the suggested regex statement.

Hope it will work. Thanks!
Hunter

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...