Dashboards & Visualizations

Double Dollar in Dropdown

hogan24
Path Finder

Using an Input to as a variable in another input....

<input type="dropdown" token="INPUT_4" searchWhenChanged="true">
  <label>Input Variable:</label>
  <search>
    <query>index=indexName sourcetype=sourcetypeName | top limit=100 $INPUT_3$ | sort $INPUT_3$</query>
    <earliest>-3d@d</earliest>
    <latest>@d</latest>
  </search>
  <fieldForLabel>$INPUT_3$</fieldForLabel>
  <fieldForValue>$INPUT_3$</fieldForValue>
</input>

Each time I reload the dashboard, I keep getting double dollar signs around my Label and Value fields. How can I prevent this from occurring? (Splunk Version 6.3.0)

  <fieldForLabel>$$INPUT_3$$</fieldForLabel>
  <fieldForValue>$$INPUT_3$$</fieldForValue>
Tags (2)
0 Karma

jbjerke_splunk
Splunk Employee
Splunk Employee

Hi hogan24

The dollar sign is reserved for tokens in Splunk. You can either escape it using the corresponding html entitiy in the and the tags or simply rename the field in your search:

index=indexName sourcetype=sourcetypeName | top limit=100 $INPUT_3$ | rename $INPUT_3$ AS INPUT_3 | sort INPUT_3

 <fieldForLabel>INPUT_3</fieldForLabel>
 <fieldForValue>INPUT_3</fieldForValue>

Let me know how you get along.

j

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...