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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...