Dashboards & Visualizations

Quickly add list of inputs to dropdown menu?

Southy567
Explorer

Hey all!

Hoping you can help. I am currently building a dashboard that will allow users to select a option from a dropdown menu, and then type in a username in order to see all events for that input for that user.

I am in a bind however as the dropdown has several hundred options (unfortunately no way to slim that down) and I was wondering if there was a way to quickly and painlessly add the labels and inputs from a spreadsheet I have over into the dropdown, or if I have to go through and copy each of them individually.

Any help would be greatly appreciated!

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You should be populating the dropdown list with a search.  That search get collect values from your indexes or can get them from a lookup file (or other places).  In the form below, your SPL (perhaps | inputlookup options.csv) goes in the "Search String" box.  The name of the field you want to show to users goes in the "Field For Value" box.

richgalloway_0-1667783487372.png

 

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You should be populating the dropdown list with a search.  That search get collect values from your indexes or can get them from a lookup file (or other places).  In the form below, your SPL (perhaps | inputlookup options.csv) goes in the "Search String" box.  The name of the field you want to show to users goes in the "Field For Value" box.

richgalloway_0-1667783487372.png

 

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...