<?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 make a drilldown to another dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457821#M30022</link>
    <description>&lt;P&gt;@jihape, add an independent search in your dashboard to assign &lt;CODE&gt;$env:app$&lt;/CODE&gt; to a field name and then use Search Event Handler to assign the same to a token to be passed on to the link.&lt;/P&gt;

&lt;P&gt;Following is the independent search code snippet to be added to your dashboard. The &lt;CODE&gt;tokeAppName&lt;/CODE&gt; can be used in &lt;CODE&gt;&amp;lt;drilldown&amp;gt;&lt;/CODE&gt; &lt;CODE&gt;&amp;lt;link&amp;gt;&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;!-- Independent search to assign Environment App Name token to custom token to be used later in the dashboard --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
    | eval currentAppName="$env:app$"&amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tokAppName"&amp;gt;$result.currentAppName$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is what the &lt;CODE&gt;&amp;lt;link&amp;gt;&lt;/CODE&gt; code will look like if you have already set the token tokAppName through the independent search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;link&amp;gt;/app/$tokAppName$/rn-ps_depot_overview?form.depot_tok=$test_tok|s$&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jul 2018 06:21:26 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-07-26T06:21:26Z</dc:date>
    <item>
      <title>How to make a drilldown to another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457819#M30020</link>
      <description>&lt;P&gt;I can't find much info on the global tokens regarding this.&lt;/P&gt;

&lt;P&gt;I'm trying to make a drilldown to another dashboard using the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="test_tok"&amp;gt;mvindex(split($click.value$, " - "),0,0)&amp;lt;/eval&amp;gt;
          &amp;lt;link&amp;gt;/app/$env:app$/rn-ps_depot_overview?form.depot_tok=$test_tok|s$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However if I click the link I get an error: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The app "$env:app$" is not available&lt;BR /&gt;
Any ideas or should I just put the app name in manually?&lt;BR /&gt;
I'm on 6.5.2.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 03:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457819#M30020</guid>
      <dc:creator>jihape</dc:creator>
      <dc:date>2018-07-26T03:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a drilldown to another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457820#M30021</link>
      <description>&lt;P&gt;@jihape ,&lt;/P&gt;

&lt;P&gt;To open another dashboard in the same app, you don't need to mention the app name but just &lt;CODE&gt;rn-ps_depot_overview?form.depot_tok=$test_tok|s$&lt;/CODE&gt; should work for you. It will pick up the current app context automatically&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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;metric?form.node=$row.sourcetype$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 06:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457820#M30021</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-26T06:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a drilldown to another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457821#M30022</link>
      <description>&lt;P&gt;@jihape, add an independent search in your dashboard to assign &lt;CODE&gt;$env:app$&lt;/CODE&gt; to a field name and then use Search Event Handler to assign the same to a token to be passed on to the link.&lt;/P&gt;

&lt;P&gt;Following is the independent search code snippet to be added to your dashboard. The &lt;CODE&gt;tokeAppName&lt;/CODE&gt; can be used in &lt;CODE&gt;&amp;lt;drilldown&amp;gt;&lt;/CODE&gt; &lt;CODE&gt;&amp;lt;link&amp;gt;&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;!-- Independent search to assign Environment App Name token to custom token to be used later in the dashboard --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
    | eval currentAppName="$env:app$"&amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tokAppName"&amp;gt;$result.currentAppName$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is what the &lt;CODE&gt;&amp;lt;link&amp;gt;&lt;/CODE&gt; code will look like if you have already set the token tokAppName through the independent search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;link&amp;gt;/app/$tokAppName$/rn-ps_depot_overview?form.depot_tok=$test_tok|s$&amp;lt;/link&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 06:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457821#M30022</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-26T06:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a drilldown to another dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457822#M30023</link>
      <description>&lt;P&gt;Oh yeah.. Not sure what I was thinking... &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 06:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-a-drilldown-to-another-dashboard/m-p/457822#M30023</guid>
      <dc:creator>jihape</dc:creator>
      <dc:date>2018-07-26T06:52:39Z</dc:date>
    </item>
  </channel>
</rss>

