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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...