Splunk Search

Timechart dynamic drilldown

Bhuavana
Explorer

Hi,

I have a timechart as my first dashboard to display all the exception types over the time and below query is used

index=test | exception_type=* | timechart count by exception_type

From above chart i need take the exception_type as input field when i click on the dashboard line.

Please share any sample code for the same.

Also how to retreive the selected value as input type in next dashboard[to display in text box]

0 Karma

Venkat_16
Contributor

Hi Bhuavana,

In the below code I have performed the dynamic drilldown by passing the exceptiontype as token. You just need to include the stanza ..

<chart>
 <searchString>index=test exception_type=* | timechart count by exception_type</searchString>
 <earliestTime>0</earliestTime>
 <latestTime>now</latestTime>
 .....
 <drilldown>
   <link>/app/your_app_name/your_next_dashboard?form.exceptiontype=$click.name2$</link>
 </drilldown>
</chart>
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...