<?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: Link a dashboard using drilldown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532581#M36239</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225702"&gt;@Uday&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Save this as a new dashboard. It shows 2 examples of doing what you want with the drilldown.&lt;/P&gt;&lt;P&gt;Left panel uses drilldown condition matching to determine which url and right hand uses pre-evaluated url path and hides that field in the table with the &amp;lt;fields&amp;gt; statement (can be done with tables).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Test&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;This panel uses condition matches to check server name&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults 
| eval servers=mvrange(1,11) 
| mvexpand servers 
| eval type=mvindex(split("W,U",","),random() % 2 - 1)
| eval status=mvindex(split("UP,DOWN",","),random() % 2 - 1)
| eval server=printf("%c_Server_%02d", type, servers)
| table server, status
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="match($row.server$,&amp;amp;quot;W&amp;amp;quot;)"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https://www.google.com.au?q=Windows&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="match($row.server$,&amp;amp;quot;U&amp;amp;quot;)"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https://www.google.com.au?q=Unix&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="*"&amp;gt;&amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;This panel uses fields statement and evaluated dashboard path&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults 
| eval servers=mvrange(1,11) 
| mvexpand servers 
| eval type=mvindex(split("W,U",","),random() % 2 - 1)
| eval status=mvindex(split("UP,DOWN",","),random() % 2 - 1)
| eval server=printf("%c_Server_%02d", type, servers)
| table server, status
| eval dashboard=if(match(server,"W"),"path_to_y_dahsboard", "path_to_c_dashboard")
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;"server","status"&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;$row.dashboard$&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;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 04:16:39 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-12-10T04:16:39Z</dc:date>
    <item>
      <title>Link a dashboard using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532522#M36231</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to link two&amp;nbsp; dashboards using drilldown option.&lt;/P&gt;&lt;P&gt;If I drilldown on server A, it should link to dashboard X.&lt;/P&gt;&lt;P&gt;If I drilldown on server B, it should link to dashboard Y.&lt;/P&gt;&lt;P&gt;Please suggest how to achieve this.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 19:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532522#M36231</guid>
      <dc:creator>Uday</dc:creator>
      <dc:date>2020-12-09T19:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Link a dashboard using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532540#M36234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225702"&gt;@Uday&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you click the source button, then find your visualization in the XML code, you should see this line of code:&lt;/P&gt;&lt;P&gt;&amp;lt;option name="charting.drilldown"&amp;gt;&lt;FONT color="#0000FF"&gt;none&lt;/FONT&gt;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;change that to all:&lt;/P&gt;&lt;P&gt;&amp;lt;option name="charting.drilldown"&amp;gt;&lt;FONT color="#0000FF"&gt;all&lt;/FONT&gt;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;Then inside the drilldown brackets add your conditions:&lt;/P&gt;&lt;P&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;condition field="A"&amp;gt;&lt;BR /&gt;&amp;lt;link target="_blank"&amp;gt;X&amp;lt;/link&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;condition field="B"&amp;gt;&lt;BR /&gt;&amp;lt;link target="_blank"&amp;gt;Y&amp;lt;/link&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/drilldown&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Marco&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532540#M36234</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2020-12-09T22:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Link a dashboard using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532554#M36236</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225702"&gt;@Uday&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you save 'Server A' or 'Server B' do you mean the values in a table or a chart?&lt;/P&gt;&lt;P&gt;If you're talking about field values, then the token $click.value$ or $row.XX$ (for tables) will contain the value of that field you have clicked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then use a &amp;lt;condition&amp;gt; element with a match statement that can match to the value you're expecting and set the link URL accordingly.&lt;/P&gt;&lt;P&gt;See this document about token usage in dashboards, which has examples of using drilldown tokens and conditions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/Viz/tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 23:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532554#M36236</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-12-09T23:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Link a dashboard using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532575#M36238</link>
      <description>&lt;P&gt;Thank you. Please see the attached screenshot. I am not using a chart. I have both Unix and Windows servers. The window servers will have “w” in the server names highlighted in green and the rest are Unix servers. If I drill down on Windows server, it should take me to Y dashboard. If it is Unix server, it should take me to C dashboard.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 02:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532575#M36238</guid>
      <dc:creator>Uday</dc:creator>
      <dc:date>2020-12-10T02:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Link a dashboard using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532581#M36239</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225702"&gt;@Uday&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Save this as a new dashboard. It shows 2 examples of doing what you want with the drilldown.&lt;/P&gt;&lt;P&gt;Left panel uses drilldown condition matching to determine which url and right hand uses pre-evaluated url path and hides that field in the table with the &amp;lt;fields&amp;gt; statement (can be done with tables).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Test&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;This panel uses condition matches to check server name&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults 
| eval servers=mvrange(1,11) 
| mvexpand servers 
| eval type=mvindex(split("W,U",","),random() % 2 - 1)
| eval status=mvindex(split("UP,DOWN",","),random() % 2 - 1)
| eval server=printf("%c_Server_%02d", type, servers)
| table server, status
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="match($row.server$,&amp;amp;quot;W&amp;amp;quot;)"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https://www.google.com.au?q=Windows&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="match($row.server$,&amp;amp;quot;U&amp;amp;quot;)"&amp;gt;
            &amp;lt;link target="_blank"&amp;gt;https://www.google.com.au?q=Unix&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="*"&amp;gt;&amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;This panel uses fields statement and evaluated dashboard path&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
| makeresults 
| eval servers=mvrange(1,11) 
| mvexpand servers 
| eval type=mvindex(split("W,U",","),random() % 2 - 1)
| eval status=mvindex(split("UP,DOWN",","),random() % 2 - 1)
| eval server=printf("%c_Server_%02d", type, servers)
| table server, status
| eval dashboard=if(match(server,"W"),"path_to_y_dahsboard", "path_to_c_dashboard")
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;"server","status"&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;$row.dashboard$&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;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 04:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Link-a-dashboard-using-drilldown/m-p/532581#M36239</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-12-10T04:16:39Z</dc:date>
    </item>
  </channel>
</rss>

