Splunk Search

a table drilldown to a pie chart visualisation

sam1010
Explorer

sam1010_1-1629809618922.png

 

So I have added a table drilldown to this pie chart but I need the rows in table displayed according to the value I have clicked on this pie chart. For example if I click on "production" slice of pie , only Production values should show in table.
How can I do this?

Labels (5)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sam1010 

Just set token on click on any pie. Like this..

<drilldown>
          <set token="tkn_env">$click.value$</set>
        </drilldown>

 

And use that token in table view search. like 

| search environment ="*$tkn_env$*"

 

You can change search as per your requirement.

KV

0 Karma

sam1010
Explorer

I have already set token to the panel, and in table visualisation I have added <panel depends="$pie_token$"> so it shows only when clicked on the pie chart.....what I'm asking is how can I make it so when I click on any slice(environment) of the pie the table values change according to that particular environment

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sam1010 

You have to use the same token in search also, as a search filter, You can share your XML also for further help.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Enhance Security Operations with Automated Threat Analysis in the Splunk EcosystemAre you leveraging ...

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...