Dashboards & Visualizations

help to open a drilldown from a pie chart slice

jip31
Motivator

Hi

 

From the code below, I display a pie chart in order to display the top 10 of EventCode

index="toto" sourcetype=tutu EventCode=* (Level=1 OR Level=2 OR Level=3) 
| fields _time host EventCode  
| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| stats count(host) as "Number of EventCode" by EventCode 
| sort -"Number of EventCode" 
| head 10

 Now, I need to open a drilldown when I click on a slice of the pie chart

I modified my xml like this but it doesnt works

  <init>
    <set token="EventCode">*</set>
  </init>

   <drilldown>
     <set token="EventCode">$click.value$</set>
     <link target="_blank">/app/titi/eee</link>
    </drilldown>

 Could you help me please?

Labels (1)
Tags (1)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

What does not work?

The <drilldown> section needs to be part of the dashboard <chart> element.

Does the drilldown open up a new page and not find the target or does the drilldown not happen.

You will also need the following as part of the <chart> definition

<option name="charting.drilldown">all</option>

Hope this helps 

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

What does not work?

The <drilldown> section needs to be part of the dashboard <chart> element.

Does the drilldown open up a new page and not find the target or does the drilldown not happen.

You will also need the following as part of the <chart> definition

<option name="charting.drilldown">all</option>

Hope this helps 

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...