Splunk Search

Drilldown to link to search

navd
New Member

My sample code looks like this how do I apply/insert drilldown to my code , to link to search results

 <form>
 <label> Areas</label>
  <row>
<panel>
  <title></title>
  <html>
    <p>
     <h2>
        <strong> abc </strong>
      </h2> 
    </p>
    </html>
  </panel>
  </row>
</form> 
Tags (1)
0 Karma

TISKAR
Builder

Hello,

If you have a search query in your dashboard you can use else you can use the html balise

For example (You can pas all this code in your dashboard):

<form>
  <label>TEST</label>
  <fieldset submitButton="false">
    <input type="multiselect" token="field1">
      <label>field1</label>
      <choice value="Host">Host</choice>
      <choice value="Environment">Environment</choice>
      <choice value="Node Group">Node Group</choice>
      <delimiter>:</delimiter>
      <valuePrefix>'</valuePrefix>
      <valueSuffix>'</valueSuffix>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index=_internal | stats count by log_level | eventstats sum(count) as somme | eval perc=100*count/somme</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>

        <drilldown>
         <link>
           <![CDATA[ http://localhost:8000/fr-FR/app/search/search?q=search%20index%3D_internal%20log_level%3D*&]]>
         </link>
        </drilldown>


        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">cell</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
  <row>
    <panel>
        <html>
          <a href="http://localhost:8000/fr-FR/app/search/search?q=search%20index%3D_internal%20log_level%3D*">drilldown</a>
        </html>
        </panel>
  </row>
</form>
0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...