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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...