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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...