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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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