<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to pass token from dashboard to a report in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449921#M29578</link>
    <description>&lt;P&gt;Hi @orion44&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;SampleDashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="name_param"&amp;gt;
      &amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|savedsearch testreport name="$name_param$"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;/app/search/report?s=testreport&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 09 Feb 2019 12:10:37 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-02-09T12:10:37Z</dc:date>
    <item>
      <title>How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449919#M29576</link>
      <description>&lt;P&gt;I have a simple dashboard that I use to input an IP address to query a report I've saved.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;Syslog Data Search&amp;lt;/label&amp;gt;
      &amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
        &amp;lt;input type="text" token="ip" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;IP address:&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;title&amp;gt;Syslog Report&amp;lt;/title&amp;gt;
          &amp;lt;table&amp;gt;
            &amp;lt;search ref="Syslog Report"&amp;gt;&amp;lt;/search&amp;gt;
            &amp;lt;drilldown&amp;gt;
              &amp;lt;link target="_blank"&amp;gt;https://whois.domaintools.com/$click.value$&amp;lt;/link&amp;gt;
            &amp;lt;/drilldown&amp;gt;
          &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've configured the report to use the token via  &lt;CODE&gt;SRC=$ip$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However this does not work and the token is not passed to the report after entering it into the dashboard. Is it even possible to pass a token to a report?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 02:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449919#M29576</guid>
      <dc:creator>orion44</dc:creator>
      <dc:date>2019-02-09T02:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449920#M29577</link>
      <description>&lt;P&gt;You can do this with the &lt;CODE&gt;| savedsearch&lt;/CODE&gt; command which allows you to pass tokens to it:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Savedsearch"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Savedsearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 03:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449920#M29577</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-09T03:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449921#M29578</link>
      <description>&lt;P&gt;Hi @orion44&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;SampleDashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="name_param"&amp;gt;
      &amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|savedsearch testreport name="$name_param$"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;/app/search/report?s=testreport&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Feb 2019 12:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449921#M29578</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-09T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449922#M29579</link>
      <description>&lt;P&gt;Error in 'savedsearch' command: Encountered the following error while building a search for saved search 'Syslog Report': Error while replacing variable name='ip'. Could not find variable in the argument map..&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 20:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449922#M29579</guid>
      <dc:creator>orion44</dc:creator>
      <dc:date>2019-02-09T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449923#M29580</link>
      <description>&lt;P&gt;In your case, &amp;gt;|savedsearch testreport ip="$name_param$"&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 23:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449923#M29580</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-09T23:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449924#M29581</link>
      <description>&lt;P&gt;Still doesn't work.&lt;/P&gt;

&lt;P&gt;My saved report defines the variable as &lt;CODE&gt;SRC=ip&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The dashboard captures and passes the variable like this:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;input type="text" token="ip" searchWhenChanged="true"&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;|savedsearch "Syslog Report" ip=$ip$&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449924#M29581</guid>
      <dc:creator>orion44</dc:creator>
      <dc:date>2019-02-12T20:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449925#M29582</link>
      <description>&lt;P&gt;Try with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch "Syslog Report" ip="$ip$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 03:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449925#M29582</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-13T03:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449926#M29583</link>
      <description>&lt;P&gt;Thanks, I appreciate the time you've spent to help me with this. Unfortunately that still doesn't work. I don't think it's possible to pass tokens to saved searches.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 22:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449926#M29583</guid>
      <dc:creator>orion44</dc:creator>
      <dc:date>2019-02-19T22:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449927#M29584</link>
      <description>&lt;P&gt;Its possible. Try to execute the query in search bar with some ip address like and test&lt;BR /&gt;
    |savedsearch "Syslog Report" ip="192.168.56.1"&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 01:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449927#M29584</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-20T01:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449928#M29585</link>
      <description>&lt;P&gt;its possible to pass the token through saved search, but token field name is the one you need to use it in your savedsearch report query. &lt;/P&gt;

&lt;P&gt;if you want to exexute :  |savedsearch "Syslog Report" &lt;STRONG&gt;token_SourceIPAddress&lt;/STRONG&gt;="$ip$"&lt;BR /&gt;
your saved search should be like,&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=someindex src_ip_field=&lt;STRONG&gt;$token_SourceIPAddress$&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449928#M29585</guid>
      <dc:creator>dmuraleetcs</dc:creator>
      <dc:date>2020-09-29T23:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449929#M29586</link>
      <description>&lt;P&gt;Seems like the long way around - but it works like a charm!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 21:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449929#M29586</guid>
      <dc:creator>gurlest</dc:creator>
      <dc:date>2019-06-25T21:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449930#M29587</link>
      <description>&lt;P&gt;This seems to also imply we cannot schedule the report.  If there is a variable in the report, then the report will not know what to do with it, no? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 19:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449930#M29587</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2019-10-28T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449931#M29588</link>
      <description>&lt;P&gt;Correct; one or the other.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 23:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449931#M29588</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-28T23:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from dashboard to a report</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449932#M29589</link>
      <description>&lt;P&gt;Thank you.  I clicked the vote. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Do you know how to place the report last run date/time on the dashboard?  Since the data is essentially static, and only as good as the last run.  I would like to place the last run date so it's "Effective as of..."&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-dashboard-to-a-report/m-p/449932#M29589</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2019-10-29T12:58:01Z</dc:date>
    </item>
  </channel>
</rss>

