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

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...