Dashboards & Visualizations

how to access labels and values of form multi select inputs in splunk

sravan464
Explorer

i have a multi select input and able to get the values but want to get all the label values.

 

 

<fieldset submitButton="false" autoRun="true">
<input type="multiselect" token="endpoint" searchWhenChanged="true">
<label>Endpoints</label>
<choice value="/project/api-aaa/v1.0">api-aaa</choice>
<choice value="/project/api-bbb/v1.0">api-bbb</choice>
<choice value="/project/api-ccc/v1.0">api-ccc</choice>
<delimiter> OR </delimiter>
<valuePrefix>"</valuePrefix>
<valueSuffix>"</valueSuffix>
<default>/project/api-aaa/v1.0,/project/api-bbb/v1.0,/project/api-ccc/v1.0</default>
<change>
<set token="dropToken_label">$label$</set> // this is working partially and able to get first label which is `api-aaa`
</change>
</input>
</fieldset>

 

 


`<set token="dropToken_label">$label$</set>` // this is working partially and able to get first label which is `api-aaa`

i need to access all the labels selected ?

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The selected inputs are in the $endpoint$ token.

---
If this reply helps you, Karma would be appreciated.
0 Karma

sravan464
Explorer

i already mentioned in the question  able to get the values but want to get all the label values.

0 Karma

sravan464
Explorer

i need access to labels ? 

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...