<?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 a pie chart in dashboard to another dashboard which is not $click.value$ in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331822#M21515</link>
    <description>&lt;P&gt;@sangs8788, You can set tokens for links using set or eval based on the need and then pass the same to drilldown.&lt;/P&gt;

&lt;P&gt;Can you give example as to what link you need to use based on clicked value?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 17:01:14 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-09-13T17:01:14Z</dc:date>
    <item>
      <title>How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331819#M21512</link>
      <description>&lt;P&gt;I have a panel with Pie chart which has drilldown. Below is the code on the same&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;title&amp;gt;Platform Error Distribution - $tokPanel1$&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=app host="prod*"  error $tokPanel1_release_timerange$| eval layer="Application"| append [search index=app host="prod*" MQ _raw="*ERROR* $tokPanel1_release_timerange$ | eval layer="Queue"] | append [search index=app host="prod*" dataservice $tokPanel1_release_timerange$|eval layer = "DataService"] |stats count by layer&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
     &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to switch on drilldown here to choose link based on the click.value which could be 'Queue' or 'dataservice' or 'Application'. Also along with the click.value, I want the $tokPanel1$ value in the title to be passed to the next dashboard. Is this achievable ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 08:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331819#M21512</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2017-09-13T08:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331820#M21513</link>
      <description>&lt;P&gt;@sangs8788, yes this is possible &lt;CODE&gt;$tokPanel1$&lt;/CODE&gt; should be accessible throughout the dashboard so you can pass it on to the new dashboard.&lt;/P&gt;

&lt;P&gt;Can you provide a sample URL for second dashboard with sample token values i.e. $click.value$ and $tokPanel1$? Or else fill in the required details below for coding your &lt;CODE&gt;drilldown&lt;/CODE&gt; like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;/app/&amp;lt;YourAppName&amp;gt;/&amp;lt;YourSecondDashboardName&amp;gt;?&amp;lt;YourURLQueryString1&amp;gt;=$tokPanel1$&amp;amp;amp;&amp;lt;YourURLQueryString2&amp;gt;=$click.value$&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace required details i.e. &lt;BR /&gt;
1) Your App name: &lt;CODE&gt;&amp;lt;YourAppName&amp;gt;&lt;/CODE&gt;, &lt;BR /&gt;
2) Your Launch Dashboard Name: &lt;CODE&gt;&amp;lt;YourSecondDashboardName&amp;gt;&lt;/CODE&gt;,&lt;BR /&gt;
3) Query string Key name for Panel: &lt;CODE&gt;&amp;lt;YourURLQueryString1&amp;gt;&lt;/CODE&gt; and &lt;BR /&gt;
4) Query string for clicked value: &lt;CODE&gt;&amp;lt;YourURLQueryString2&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331820#M21513</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-13T09:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331821#M21514</link>
      <description>&lt;P&gt;Is it possible to choose link based on the click.value ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331821#M21514</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2017-09-13T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331822#M21515</link>
      <description>&lt;P&gt;@sangs8788, You can set tokens for links using set or eval based on the need and then pass the same to drilldown.&lt;/P&gt;

&lt;P&gt;Can you give example as to what link you need to use based on clicked value?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331822#M21515</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-13T17:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331823#M21516</link>
      <description>&lt;P&gt;Something like this&lt;/P&gt;

&lt;P&gt;For click.value==dataservice the link should be - /app/site/release_ds_detailed_&lt;EM&gt;report&lt;BR /&gt;
For click.value==application the link should be - /app/site/release_app_detailed&lt;/EM&gt;_report&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331823#M21516</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2020-09-29T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass token from a pie chart in dashboard to another dashboard which is not $click.value$</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331824#M21517</link>
      <description>&lt;P&gt;@sangs8788, Please try the following and confirm. Using &lt;CODE&gt;eval&lt;/CODE&gt; tag I am setting&lt;CODE&gt;layerAconym&lt;/CODE&gt; token which is  based on selected layer, i.e. &lt;CODE&gt;ds&lt;/CODE&gt; for &lt;CODE&gt;dataservice&lt;/CODE&gt; and &lt;CODE&gt;app&lt;/CODE&gt; for &lt;CODE&gt;application&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;eval token="layerAcronym"&amp;gt;case($click.value$=="dataservice","ds",$click.value$=="application","app")&amp;lt;/eval&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;/app/site/release_$layerAcronym$_detailed_report&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-token-from-a-pie-chart-in-dashboard-to-another/m-p/331824#M21517</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-14T08:23:18Z</dc:date>
    </item>
  </channel>
</rss>

