Getting Data In

How to EXTRACT regex expression in props.conf?

greggz
Communicator

I have this file with this appearance

first.prop.one=1
first.prop.two=2
first.prop.third=3

I was using KV_MODE=Auto, but I need more than 100 results. So I went to the HF, in the sourcetype definitions added

[sourcetype]
EXTRACT-Property=(?<Property>.+)=(?<Value>.+)

But nothing changed. Am I extracting correctly ?

thanks

0 Karma

micahkemp
Champion

EXTRACT and REPORT are search time objects, and need to be in place on the search head (not the forwarder).

I'd also suggest setting KV_MODE = none to avoid potential conflicts.

greggz
Communicator

Ohhh right. Anyway, is the regex correct ?

0 Karma

DUThibault
Contributor

It looks okay, but just to be sure I'd write it as (?<Property>[^=]+)=(?<Value>.+)

Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...