Dashboards & Visualizations

How to pass parameters to report from dashboard?

shail2smart
New Member

How to pass a parameter to report (/report) which is called on click of a column within dashboard panel?

<drilldown>
          <condition field="Unfulfilled Count">
            <link target="_blank">/app/gnt-tok/report?s=App Exception Report</link>
          </condition>
</drilldown>
0 Karma

DalJeanis
SplunkTrust
SplunkTrust

You are using a <link>, so you would pass a parameter as a URL key/value pair.

4) <link> [path/viewname?form.token=$dest_value$&earliest=$earliest$&latest=$latest$] </link>

You basically concatenate together a number of items in the form &keyword=$tokenname$, although the first one gets the ? instead.

There are more examples on this page ... http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/PanelreferenceforSimplifiedXML#link

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

The square braces are NOT part of the code there, and I would not put any space between the open tag <link> and the start of the url, or between the end of the url and the start of the close tag `.

0 Karma

elliotproebstel
Champion

When you say you want to pass a parameter to a report, what do you mean? Generally, I've used drilldowns to pass parameters to forms on dashboards. Are you loading the saved report in the context of another dashboard?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Customer Survey!

If you use Splunk Observability Cloud, we invite you to share your valuable insights with us through a brief ...

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Starting With Observability: OpenTelemetry Best Practices

Tech Talk Starting With Observability: OpenTelemetry Best Practices Tuesday, October 17, 2023   |  11AM PST / ...