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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...