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!

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...

Cisco Catalyst Center Meets Splunk ITSI: From 'Payments Are Down' to Root Cause in ...

The Problem: When Networks and Services Don't Talk Payment systems fail at a retail location. Customers are ...