Dashboards & Visualizations

Can I map a drop-down token to two different values in different panels?

michael_wong
Path Finder

Hello,

I have a dashboard using  static drop-down to mapping the value in multiple panels. Can I map a drop-down token to two different values in different panels?

For example: I have below drop-down token, A,B,C

And I want to given token value A in panel1 = A1, panel2=A2

given token value B in panel1 = B1, panel2=B2.

In short, it's mapping one static token into two different values in different panels.

Labels (2)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

No and yes - you can't map to more than one value, but you could use the change event handler to evaluate two tokens based on the value selected. Note that you can do this in Classic Dashboards, but I am not sure this feature is available in Studio yet.

0 Karma

michael_wong
Path Finder

Thanks for your reply. Yes, can use event handler, but it will quite complex as each token need to much on every panel. If I have 10 tokens and 6 panels. I will need to write 10*6 queries. Is there any effective way to achieve this? 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If you need 60 tokens, you need 60 tokens.

Having said that, you could just have 10 tokens and let the panel find the part of the token that is relevant to it.

You might be able to put this into a macro to ensure consistency.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...