Splunk Search

How do I update the extracted part of the source field in props.conf and transforms.conf?

apurva1707
New Member

For example:

source = D:\Users\ABC\Desktop\splunk\abc.log

I have extracted the part of string I wanted using (?\w+\.\w+). My sourcetype=log4j

What changes need to be made in props.conf and transforms.conf so that it can reflect in Splunk?

0 Karma

alemarzu
Motivator

Hi apurva,

For search-time extractions add this to your props.conf

[log4j]
EXTRACT-my_ext = your_regex    

Hope it helps.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...