Splunk Search

Why are fields not being extracted using props.conf on my universal forwarder?

rajnish1202
Explorer

Hi,

I have been using a props.conf file to extract fields in my event logs, but it does not seem to be working. Below are the sample props.conf and event. Any help is much appreciated.

C:\Program Files\SplunkUniversalForwarder\etc\apps\my_app\local\props.conf

[Script:WinService]
EXTRACT-service = SERVICE_NAME: (?<service_name>\S*)
EXTRACT-state = STATE\s*?: [0-9]\s*(?<state>\S*) 

and the event is shown in attached image.

Many thanks in advance.

Regards,
Rajnish Kumar

0 Karma
1 Solution

masonmorales
Influencer

You need to place the props.conf containing field extractions on your search head. A Universal Forwarder will ignore EXTRACT configurations in props.conf.

View solution in original post

0 Karma

masonmorales
Influencer

You need to place the props.conf containing field extractions on your search head. A Universal Forwarder will ignore EXTRACT configurations in props.conf.

0 Karma

rajnish1202
Explorer

Thanks Mason for your response. My app resides on my forwarder as shown in my question. In this case which directory I should put my props.conf file in on my search head?

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...