Dashboards & Visualizations

Token for a field containing spaces and special characters

chintu_jain
Explorer

How do I return the value of a field that contains spaces and special characters using a Token? The field name is License quota used (%)

I tried the following combinations, however none appear to work.

$result."License quota used (%)"$
$"result.License quota used (%)"$
$result.License quota used (%)$"

Tried single quotes as well, but no luck.

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

The token and the label don't have to be the same. Why not make the token easy to use?

0 Karma

sbbadri
Motivator

Try this

1) $result.License%20quota%20used%20(%)$

or

2) <eval token="licenselabel">License quota used (%)</eval>
$result.licenselabel$
or

3) "$result.'License quota used (%)$"

0 Karma

chanmi2
Path Finder

I am trying to do similar things in sending email alert, with inline table included. Point 1 and 3 did not work

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...