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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...