Splunk Search

regex returns limit exceeded

drissbek
New Member

Hi

Could you please help me figure out what is wrong with my regex. Splunk is returning a limite exceeds error while my regex is correct according to regex101.

PI, my log looks like below :

XXXX|YYYYY|ZZZZZ|UUUUUU

my regex is:

(?P<XXX>[\,+])\|(?P<YYY>[\,+])\|(?P<ZZZ>[\,+])\|(?P<UUU>[\,+])

Labels (1)
0 Karma

koshyk
Super Champion

seems your regex had small issue

 

| makeresults
| eval msg="XXXX|YYYYY|ZZZZZ|UUUUUU"
| rex field=msg "(?P<XXX>[^\|]+)\|(?P<YYY>[^\|]+)\|(?P<ZZZ>[^\|]+)\|(?P<UUU>[^\|]+)"

 

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Maybe it’s better to use extract if/when you have |-delimiter events?

https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Extract

r. Ismo

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...