Dashboards & Visualizations

Can we assign multiple actions to the drop down fields in a panel?

nandu1491
New Member

I am creating a panel in splunk enterprise by getting user input followed by drop down options (eg: ADD, DELETE, CHECK etc). We wanted to assign different actions for each drop down options, however we are unable to perform so.

We have tried passing the token of user input field into the drop down option, but the token ($$) is not working inside the panel choice values.

Note: All these drop down actions performs DB level queries such as INSERT, UPDATE, SELECT etc

Is there any feasible options in Splunk for this.

Tags (1)
0 Karma

sshelly_splunk
Splunk Employee
Splunk Employee

You can do a conditional check within the xml. something like the following:


add
update
delete


youraddsqlcommand


yourupdatesqlcommand


yourdeletesqlcommand



Than you can reference the $db_command$ token in your dashboard.... hope this helps. If not, please post what you have, and maybe we can help.

0 Karma

cmerriman
Super Champion

Can you post the syntax?

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