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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...