Splunk Search

how to fetch field for label for drop down list while passing token

Jasmine
Path Finder

How to fetch the fieldForLabel value using token(option). i have to pass fieldForLabel to query

<input type="dropdown" token="option">
   <label>Choose from options</label>
   <fieldForLabel>TEST</fieldForLabel>
   <fieldForValue>aaa</fieldForValue>
   <search>
      <query>
         | inputlookup keyvalue_pair.csv 
         | dedup TEST
         | sort TEST
         | table TEST aaa
      </query>
   </search>
</input>

 

Labels (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

Add in

<change>
  <set token="selected_label">$label$</set>
</change>

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Add in

<change>
  <set token="selected_label">$label$</set>
</change>
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...