Dashboards & Visualizations

Rename dropdown fields

nebel
Communicator

Hi there,

I am populating a drop down menu with a lookup file. The lookup file contains the sourcetype and a simple translation into better words. To goal is to make it simple for user who don't know the sourcetypes. The just choose the "easy word" and in the background the sourcetype is the token for the searches.

In my lookup file there are both values, means the sourcetype and the "easy words".
How can I populate the drop down with the "easy words" but in the background I can give the search the sourcetype?

<fieldset>
      <input type="dropdown" token="sourcetype" searchWhenChanged="true">
          <label>Select OS</label>
          <default>localhost</default>
          <populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype">| inputlookup translation | table sourcetype</populatingSearch>
Tags (1)
0 Karma
1 Solution

lguinn2
Legend

Change your populating search to

<populatingSearch fieldForValue="sourcetype" fieldForLabel="XYZ">| inputlookup translation | table sourcetype XYZ</populatingSearch>

Replace XYZ with the name of the field in the lookup table that contains the "easy words."

View solution in original post

0 Karma

lguinn2
Legend

Change your populating search to

<populatingSearch fieldForValue="sourcetype" fieldForLabel="XYZ">| inputlookup translation | table sourcetype XYZ</populatingSearch>

Replace XYZ with the name of the field in the lookup table that contains the "easy words."

0 Karma

nebel
Communicator

thank you very much 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...