Splunk Enterprise

Cannot save custom field extraction when using my own regex

Julznova_
New Member

Hey, 

I'm attempting to extract a field by using: 

 

(?<=cs4=)(.*\n?)(?=categoryTechnique)

 

It matches 100% of the results, also checked on a regex editor,  but I cannot hit the save button. It continues to be greyed out.
sssss.JPG

I've attempted to create a custom field in Settings > Fields > Field Extractions > Add New

For this source type, but that throws up errors.

Anyone give me a hand?

Thanks!

 

Labels (1)
0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @Julznova_ 

Following is the error, What are you trying to extract and any sample?

Error in 'rex' command: The regex '(?<=cs4=)(.*\n?)(?=categoryTechnique)' does not extract anything. It should specify at least one named group. Format: (?<name>...).

 

0 Karma
Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...