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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...