Splunk Search

Dashboard

uagraw01
Motivator

 

 i want add Radio button in which i want setting that when i will select MFG host it will show all MFG host result and when i will select MSSQL host it will show only MSSQl result and hide the MFG host result. Please help out for this setting

IMG_20201021_160913.jpg

Tags (1)
0 Karma

kennetkline
Path Finder

Hello,

I understand you have two dropdown boxes;  

1.  MFG hosts (default all,  I assume behind the scenes you have a query that provides the list of the hosts that are MFG related.  I assume you have a query likewise for the MQSQL dropdown.

Then the Panel has the MSG hosts.  I really can't see going through work to try to hide unhide panels.  Depending on the querys used and if you can attach a sample source for the dashboard would help.

I would recommend the following approach:

if a single search that can be run to list all hosts both mysql/msg with a flag where you can set a variable say host_type or something.  then you could do a dropy down with static values for MSG and MySql set a variable $host_type$ .  Then the host dropdown has static all and will then filter to either MSG or Mysql based in where host_type=$host_type$

Then your panel would simply be called Hosts,  and same clause to list out any matching data using same type of filter where cluase host_type=$host_type$ to do something more.

I have shy'd away of doing radio buttons; and stick to drop down as layouts just don't look clean.

Hope this helps; if can post the source maybe can work it up and get you solved.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...