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!

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 ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...