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.
How can I accomplish this task?
@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>
@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>
@rkassabov, if this has helped please accept the answer to mark the question as answered!
Thanks! How would I then use this token on the new dashboard to filter the table data?
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.