Dashboards & Visualizations

Drilldown not working at all

mah
Builder

Hi, 

Here is my xml code of 2 pannels :

<panel>
<single>
<search base="abc">
<query>
| eval Duration=round(abs((relative_time(now(), "@d")-relative_time(strptime(Timestamp, "%Y-%m-%dT%H:%M:%S.%N"), "@d"))/86400),0)
| table Duration
| rename Duration
| head 1</query>
</search>
<option name="colorBy">value</option>
<option name="colorMode">none</option>
<option name="drilldown">all</option>
<option name="numberPrecision">0</option>
<option name="rangeColors">["0x53a051","0xf1813f","0xdc4e41"]</option>
<option name="rangeValues">[0,1]</option>
<option name="refresh.display">progressbar</option>
<option name="showSparkline">1</option>
<option name="showTrendIndicator">1</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
<option name="trendColorInterpretation">standard</option>
<option name="trendDisplayMode">absolute</option>
<option name="useColors">1</option>
<option name="useThousandSeparators">1</option>
<drilldown>
<link target="_blank">/app/myapp/myapp__details</link>
</drilldown>
</single>
</panel>
<panel>
<single>
<search base="abc">
<query>
| eval dummy="true"
| eval epochnow = now()
| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")| eval Horodate=strftime(epochHorodate, "%Y-%m-%dT%H:%M:%S")
| where epochnow&gt;=epochHorodate
| eval _time=Horodate
| stats count(eval(Statut=="KO")) as KO by _time
| sort _time ASC
| addcoltotals</query>
</search>
<option name="colorBy">value</option>
<option name="colorMode">none</option>
<option name="drilldown">all</option>
<option name="rangeColors">["0x53a051","0xf8be34","0xdc4e41"]</option>
<option name="rangeValues">[0,50]</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="unit">KO</option>
<option name="useColors">1</option>
<option name="useThousandSeparators">1</option>
<drilldown>
<link target="_blank">/app/myapp/myapp__details</link>
</drilldown>
</single>
</panel>

The first drilldown works perfectly, but the second which is exactly the same doesn't works at all.

Can you please help me ? 

Thanks.

 

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

niketn
Legend

@mah your SPL with addcoltotals is adding the sum of KO as total however, it is not having _time field populated for the final row. Since your Single Value viz is looking for _time values as well as the aggregate drilldown is failing for the final row (Single Value shows final row as result for drilldown).

Try replacing the addcoltotals pipe with the following instead and confirm:

| appendpipe 
    [| stats sum(KO) as KO 
    | eval _time=now()]
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@mah your SPL with addcoltotals is adding the sum of KO as total however, it is not having _time field populated for the final row. Since your Single Value viz is looking for _time values as well as the aggregate drilldown is failing for the final row (Single Value shows final row as result for drilldown).

Try replacing the addcoltotals pipe with the following instead and confirm:

| appendpipe 
    [| stats sum(KO) as KO 
    | eval _time=now()]
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

mah
Builder

It works great ! I didn't know this subtlety ! 

Thanks for your help.

 

Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...