Dashboards & Visualizations

Rex in dashboard says missing terminator

ashiskin
Engager

I have a search that works as I would like it to

source="Radius" "accounting:accountinginfo=added" OR login-user | rex field=_raw "User: (?.*)"

However when I transform it to my dashboard search string

source="Radius" "accounting:accountinginfo=added" OR login-user | rex field=_raw "User: (?<User>.*)"

I get
"Error in 'rex' command: Encountered the following error while compiling the regex 'User:(?.*)': Regex: syntax error in subpattern name (missing terminator)"

I'm sure this is something simple but I'm new to splunk and regex and am having problems finding the problem.

Tags (1)
1 Solution

ashiskin
Engager

The first part of the query is working fine....its pulling info from different sources. The problem is, and it didn't show well in my post is that the dashboard xml is eating my < and > signs, so I tried to replace them with ampersand lt and gt, but then I get the missing terminator.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...