Splunk Search

Extracting Field from a Field other than _raw in props.conf

Dark_Ichigo
Builder

I want to add a Field Extractor Regex in props.conf but not from _raw but from another field

Example: rex Filed=test "(<BLA>\w+\w+)" I want to add this to props.conf but it thinks its extracting it from _raw and I want it to be extracted from test

How cant his be done?

1 Solution

dshpritz
SplunkTrust
SplunkTrust

This can be done by using the SOURCE_KEY option in the transforms.conf. So, in props.conf

[mysourcetype]

REPORT-myextract = myextract

Then in transforms.conf:

[myextract]

SOURCE_KEY = test

REGEX = (\w+\w+)

Dave

View solution in original post

dshpritz
SplunkTrust
SplunkTrust

This can be done by using the SOURCE_KEY option in the transforms.conf. So, in props.conf

[mysourcetype]

REPORT-myextract = myextract

Then in transforms.conf:

[myextract]

SOURCE_KEY = test

REGEX = (\w+\w+)

Dave

Dark_Ichigo
Builder

Spot On! Thanks mate

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...