Splunk Search

RegEx Square Brackets not supported?

svercelli
Path Finder

Using rex and it seems as if Splunk sees the open square bracket as the beginning of a subsearch. Have I written this wrong or is there a workaround

| rex \w+\.\w+\.\w+[a-z]\_(?<Facility>[[:alnum:]]+)
0 Karma
1 Solution

alemarzu
Motivator

Hi there,

Missing quotes perhaps, | rex "\w+\.\w+\.\w+[a-z]\_(?<Facility>[[:alnum:]]+)"

View solution in original post

alemarzu
Motivator

Hi there,

Missing quotes perhaps, | rex "\w+\.\w+\.\w+[a-z]\_(?<Facility>[[:alnum:]]+)"

svercelli
Path Finder

Yep, worked, I feel a bit silly.

0 Karma

alemarzu
Motivator

Glad it worked. It happens all the time!!

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...