Splunk Search

How do I fix this error? "Regex: syntax error in subpattern name (missing terminator)"

bgdatasar
New Member

How do I fix this Regex syntax error in subpattern name missing terminator?

Error in 'rex' command: Encountered the following error while compiling the regex 'my server (?<filerName>[a-z0-9A-Z-]+)': Regex: syntax error in subpattern name (missing terminator) 
Tags (2)
0 Karma

sundareshr
Legend

Try escaping the last - like this \-

Get Updates on the Splunk Community!

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

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...