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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...