Dashboards & Visualizations

how to drilldown a row element to a child into splunk 6?

RiccardoV
Communicator

Hi, I have something like this:

<form>
    <label>test</label>
    <searchTemplate>index=* sourcetype=$sourcetype$</searchTemplate>
    <fieldset>
      <input type="time">
          <label>1. Select a time range</label>
          <default>Always</default>
      </input>
      <input type="dropdown" token="sourcetype">
        <label>2. Select a sourcetype</label>
          <choice value="*">All</choice>
          <populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype">
              | metadata type=sourcetypes index=* | fields sourcetype
          </populatingSearch>
      </input>
    </fieldset>
    <row>
      <table>
        <title>test table</title>
        <searchPostProcess>
          | stats count by ID
        </searchPostProcess>
      </table>
    </row>
</form>

How can I pass the field ID to a child element, ie a graph?
I took a look at the simple drilldown table into the splunk example app but I cannot understand.

With splunk 5 I did something like

      <table>
        <title>test table</title>
        <searchPostProcess>
          | stats count by ID
        </searchPostProcess>
        <option name="drilldown">cell</option>
        <html>
          <h1>$row.ID$</h1>
        </html>
      </table>

but now in splunk 6 it doesn't work, it pass the value to the search app (changing the current page) and not to the HTML child element.

Tags (2)
0 Karma
1 Solution

RiccardoV
Communicator

thanks! it works like a charm 🙂

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

Correct, contextual drilldown is new to Simple XML in Splunk 6.1.

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