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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...