Splunk Search

How to Extract Named Capture Groups Using a Single Line in Props.conf

Kcrowley55
New Member

Trying to extract named capture groups in a txt file, with the stipulation that it must be done from a single line in props.conf. The exercise is designed to teach how to assign many fields/values in a single line of RegEx.

There are around 20 or so fields we need to extract from the txt file (all the fields are outlined a single "event" in the text file along with the accompanying values in the next "event:). We are assuming that some form of EXTRACT will be used in props, but just not sure how to format in a single line. Any help or guidance would be much appreciated!

Tags (1)
0 Karma

somesoni2
Revered Legend

Please share some sample log entries from which you want to extract fields. Mask anything sensitive.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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