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!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...

Enterprise Security Content Update (ESCU) | New Releases

In March, the Splunk Threat Research Team had 2 releases of security content via the Enterprise Security ...

Join the Splunk Developer Program Hackathon: Splunk Build-a-thon!

The Splunk Developer Program is launching in beta, and we’re celebrating with an exciting hackathon! This is ...