Dashboards & Visualizations

How to drill down from dashboard to filtered report?

rkassabov
Path Finder

I am trying to drill down from a dashboard with a stacked bar chart to a filtered report, based on the bar selected.

I understand conceptually how tokens work, but I don't see an option in the drill down menu to do what I want.

  • I can link to a custom search, but that shows the user a report with the events open, rather than the report table
  • I can link to a report, but don't have the option to add a token to pass along (to filter by)

How can I accomplish this task?

0 Karma
1 Solution

niketn
Legend

@rkassabov tokens are available only in Dashboards. Only Time input is available in Report even that can not be passed as a form token.

For your use case you can definitely create a Dashboard similar to the report you want to drill down to. That way you can use form tokens to be passed to the target dashboard from the source dashboard with drilldown.

For example

    <drilldown>
      <link target="_blank">/app/<YourAppName>/<YourDashboardName>?form.<targetDashboardTokenName>=$click.name2$</link>
    </drilldown>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

niketn
Legend

@rkassabov tokens are available only in Dashboards. Only Time input is available in Report even that can not be passed as a form token.

For your use case you can definitely create a Dashboard similar to the report you want to drill down to. That way you can use form tokens to be passed to the target dashboard from the source dashboard with drilldown.

For example

    <drilldown>
      <link target="_blank">/app/<YourAppName>/<YourDashboardName>?form.<targetDashboardTokenName>=$click.name2$</link>
    </drilldown>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

niketn
Legend

@rkassabov, if this has helped please accept the answer to mark the question as answered!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

rkassabov
Path Finder

Thanks! How would I then use this token on the new dashboard to filter the table data?

0 Karma

niketn
Legend

You can use the targetDashboardTokenName in your query to filter out results specific for the token (if possible in base search). You can refer to Splunk Dashboard Examples App on Splunkbase for Drilldown Options.

Using a form token implies you will have to create an input like dropdown or text box. If you do not want users to input/override the token value you can add depends="$someTokenNameNeverUsed$" to the input. Example of depends and rejects is also present in Splunk Dashboard Examples app.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...