Dashboards & Visualizations

How to make a panel use different queries depending on the dropdown value?

klim
Path Finder

I have a dropdown that has three options. Depending on the option the search of a panel needs to change. So if the dropdown selected was A, I need the panel to use search A. Is this possible or should I just build three of the same panels with a depends clause on that dropdown token?

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The value for each choice in the dropdown can be the entire search

<choice value="index=xyz | table field1">Search 1</choice>

 Then the query in the panel can just be the token

<query>$dropdown$</query>

Alternatively, in the change handler for the dropdown, you could set a number of tokens which you use in the query of the panel, for example, your different searches might have different earliest and latest values. 

0 Karma
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...