Dashboards & Visualizations

How to edit my Simple XML to create a drilldown for clicking on any row of a table to open a new dashboard?

smhsplunk
Communicator

I am creating a drilldown where I click on any row of a table and it activates a new dashboard, but I cannot get this code to run.

 <panel>
      <table>
        <search>
          <query>| inputlookup locations.csv | search *  state="$get_locations$" |  table address, state, country | sort by country</query>
        </search>
        <option name="count">30</option>

        <drilldown target="_blank">
          <set token="get_location">$click.value$</set>
          <link>
            \apps\myapp\local\data\ui\views\new_page
            </link>
        </drilldown>

        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">row</option>
      </table>

    </panel>

The new dashboard is

\apps\myapp\local\data\ui\views\new_page.xml

Do I have to pass a value to get this activated? Shouldn't it work as it says

http://docs.splunk.com/Documentation/Splunk/6.3.3/Viz/Dynamicdrilldownindashboardsandforms
1. Use a relative path to connect to a dashboard.
1) path/viewname

0 Karma

smhsplunk
Communicator

Thanks both of you.
I think I didnt quite get this line before

name_form?form.state=$row.state$

Then I found this post, which was very thorough

https://answers.splunk.com/answers/169192/how-to-pass-multiple-values-from-a-drilldown-in-a-1.html

0 Karma

gyslainlatsa
Motivator

hi,

if your second dashboard is one form, try like this:

      <panel>
       <table>
         <search>
           <query>| inputlookup locations.csv | search *  state="$get_locations$" |  table address, state, country | sort by country</query>
         </search>
         <option name="count">30</option>

         <drilldown>
           <link>/app/myapp/name_form?form.state=$row.state$</link>
         </drilldown>

         <option name="wrap">true</option>
         <option name="rowNumbers">false</option>
         <option name="dataOverlayMode">none</option>
         <option name="drilldown">row</option>
       </table> 
     </panel>

renjith_nair
SplunkTrust
SplunkTrust

Below works for me

         <drilldown>
           <set token="get_location">$click.value$</set>
           <link>
             /apps/myapp/new_page
             </link>
         </drilldown>
Happy Splunking!
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...