Splunk Search

Conditional drilldown

prettysunshinez
Explorer

Hi..

I have a table(panel 1) with the below columns..

Col_A Col_B

And based on the values of Col_B i will have to create a conditional drilldown(for panel 2)

But my requirement is that Col_B should be hidden in panel 1..that is,I want to have only Col_A in the panel 1

How do i do that.

Please assist

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

@prettysunshinez (and @inventsekar ) You can hide columns with CSS - the data is still there for the drilldown to use.

 

  <row>
    <panel depends="$stayhidden$">
      <html>
        <style>
          #twocolumns th:nth-child(2),
          #twocolumns td:nth-child(2){
            display: none;
          }
        </style>
      </html>
    </panel>
    <panel>
      <table id="twocolumns">
        <search>
          <query>| makeresults | eval _raw="Col_A,Col_B
a1,b1
a2,b2"
| multikv forceheader=1
| fields - _time _raw linecount</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">cell</option>
        <drilldown>
          <set token="selected_b">$row.Col_B$</set>
        </drilldown>
      </table>
    </panel>
    <panel>
      <table>
        <search>
          <query>| makeresults | eval _raw="Col_B,Col_C
b1,c1
b2,c2"
| multikv forceheader=1 
| where Col_B="$selected_b$"
| fields - _time _raw linecount</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>

 

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @prettysunshinez ... We can have a full panel as hidden. We can not hide one or two columns alone(as per my knowledge).

Even if there are some ways to hide the column, how can you implement drilldown on that panel which is hidden?!?!.. 

 

If you explain your situation more clearly, there should be some other ways to solve this issue. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...