Splunk Search

How to get regex named capture group based on back reference for field extraction?

Pat
Path Finder

When doing an extracted field can the regex named capture group be based on a back reference.  The idea is I would have an unamed capture group followed by a named capture group using /1 as the name so the name is what was first captured in the unamed group.  I know the following does not work but im hoping some small change might make it work:

(?<\1>.*?)

Labels (1)
Tags (1)
0 Karma

Pat
Path Finder

can't seem to edit but wanted to mention I tried

 (?<$1>.*?)

as well

0 Karma
Get Updates on the Splunk Community!

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...