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!

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...