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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...