Dashboards & Visualizations

Dropdown populated with Metadata

hannanp
Path Finder

Good Morning,

I have downloaded the app for dashboards and just ran across a quick question which I feel will be easy to answer for someone with xml experience. I am just wanting to populate a dropdown with host names from the metadata. The search itself pulls back the correct field but is not populating the dropdown. I think I am just missing a simple step. Here is the code I have for the form:

<?xml version='1.0' encoding='utf-8'?>




index=myindex type=hosts series=$series$





<![CDATA[|metadata type=hosts| fields + host]]>

Any




true
20


Thanks all!

Tags (1)
0 Karma

sowings
Splunk Employee
Splunk Employee

In your populatingSearch XML element, you've said (with attributes) that the field for the value (what gets sent to other searches) and the field for the label (what you see in the pulldown) are both "series". That field isn't returned by your metadata search; these attributes should be changed to "host".

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...