Dashboards & Visualizations

dropdown populated search

hxa27
Path Finder

Hi,

I am trying to populate my dropdown from my search but I am not sure about my syntax or something else is missing. My code looks like :

form>

|| dbquery UCM "select * from DimCategory where Name="" "




<!-- Define the choices with a populating search -->

<![CDATA[index=_internal|stats count by Name]]>
<choice value="">Any




The query is run against a database. So, I am not indexing any data. any help is appreciated.

Tags (1)
0 Karma
1 Solution

hxa27
Path Finder
|dbquery UCM "select name from DimCategory where name like '%'"
* All |dbquery UCM "select name from DimCategory where name like '%'"

This code does what I want. Yeeeeeees

View solution in original post

hxa27
Path Finder
|dbquery UCM "select name from DimCategory where name like '%'"
* All |dbquery UCM "select name from DimCategory where name like '%'"

This code does what I want. Yeeeeeees

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, ...