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!

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, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...