Splunk Enterprise

How to create a drilldown to another window in splunk dashboard?

splunker2022
Explorer

i have a table in dashboard generated from stats  and a time picker in my dashboard. Based on value selected in timepicker the dashboard table value changes.The column values are not links. the first column has error message values which will be unique .if i click on a value in the 1st column then the events having those message (field.msg) should be displayed in another window. this is applicable for all values in that first column

 

Thanks for ur time and ur intention to help...

Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Obviously, I don't have access to your data and you haven't provided the searches you are using so here is a runanywhere example in a SimpleXML dashboard format.

  <row>
    <panel>
      <title>Groups</title>
      <table>
        <search>
          <query>| gentimes start=-1 increment=10s 
| rename starttime as _time 
| fields - endhuman endtime starthuman
| eval count=random() % 20
| eval group=random() % 2
| eval item=random() % 10 + (10 * group)
| stats sum(count) as total by group</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <set token="groupchoice">$click.value$</set>
        </drilldown>
      </table>
    </panel>
    <panel depends="$groupchoice$">
      <title>Selected group</title>
      <table>
        <search>
          <query>| gentimes start=-1 increment=10s 
| rename starttime as _time 
| fields - endhuman endtime starthuman
| eval count=random() % 20
| eval group=random() % 2
| eval item=random() % 10 + (10 * group)
| where group=$groupchoice$
| stats sum(count) as total by item</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>
  </row>

 

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

I would suggest going through Splunk Drilldown Documentation as it'll give you all the details with example to set this up. 

 

0 Karma

splunker2022
Explorer

Thanks for ur reply..since i am new, Sorry i could nt understand. could u kindly explain with example . dont we have to make the column value a link?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Obviously, I don't have access to your data and you haven't provided the searches you are using so here is a runanywhere example in a SimpleXML dashboard format.

  <row>
    <panel>
      <title>Groups</title>
      <table>
        <search>
          <query>| gentimes start=-1 increment=10s 
| rename starttime as _time 
| fields - endhuman endtime starthuman
| eval count=random() % 20
| eval group=random() % 2
| eval item=random() % 10 + (10 * group)
| stats sum(count) as total by group</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <set token="groupchoice">$click.value$</set>
        </drilldown>
      </table>
    </panel>
    <panel depends="$groupchoice$">
      <title>Selected group</title>
      <table>
        <search>
          <query>| gentimes start=-1 increment=10s 
| rename starttime as _time 
| fields - endhuman endtime starthuman
| eval count=random() % 20
| eval group=random() % 2
| eval item=random() % 10 + (10 * group)
| where group=$groupchoice$
| stats sum(count) as total by item</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>
  </row>

 

splunker2022
Explorer

really thanks a lot for ur timely help .

Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can use a drilldown on the table to set a token to the value of the first column and use that token in the search of another panel in the dashboard. You could even make the second panel depend on the existence of the token being set so that it only becomes visible when the token has been defined by the drilldown.

0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...