Splunk Enterprise

Regex help- Why am I getting error "Regex: quantifier doesn't follow a repeatable item"?

SplunkEmp22
Engager

SplunkEmp22_0-1666251387951.png

Hi sorry for my direct question. This match it's in eval and i get the error "Regex: quantifier doesn't follow a repeatable item".

Do u know where it's the issue? Thank u

Labels (1)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The first * is not required

0 Karma

SplunkEmp22
Engager

i want to match only all the words before and after User enabled, i tried to remove the first *, but it doesn't match anymore all the words before User

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Match() is going to return true or false depending on whether the field matches the pattern - what is the pattern you are trying to find e.g. the field must contain "user enabled" with one or more words before it and zero or more words after it?

Have you considered using + rather than * so you get at least one of the preceding characters?

Also, try your regex in regex101.com as a great way to check you have got the expression right - it also will explain what your expression means.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...