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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...