Dashboards & Visualizations

Help with single value drilldown into a new tab

vrmandadi
Builder

Hello,

I am trying to create a drilldown for a single value, on clicking it,a new dashboard should open in a new tab.

      `<option name="colorBy">value</option>
    <option name="colorMode">block</option>
    <option name="drilldown">all</option>
    <option name="numberPrecision">0</option>
    <option name="rangeColors">["0x65a637","0xf7bc38","0xd93f3c"]</option>
    <option name="rangeValues">[100,200]</option>
    <option name="showSparkline">1</option>
    <option name="showTrendIndicator">1</option>
    <option name="trendColorInterpretation">standard</option>
    <option name="trendDisplayMode">absolute</option>
    <option name="trendInterval">-30m</option>
    <option name="underLabel">compared to $timepickr.earliest$ before</option>
    <option name="unitPosition">after</option>
    <option name="useColors">1</option>
    <option name="useThousandSeparators">1</option>
    <option name="underLabel">compared to $timepickr.earliest$ before</option>

   <option name="linkFields">underlabel</option>
    <option name="linkView">404_error_srv</option>
   </single>

`
This XML is working but not going opening a new tab and I am using splunk 6.6, which says the underlabel and link fields are depricated.How can I get into another tab on clicking the single value number

Tags (3)
0 Karma

niketn
Legend

Following is a run anywhere dashboard with drilldown which should try to open the dashboard with one earliest and latest time stamp and clicked count as three parameters. Based on your example URL, seems like you do not need any parameters. Get rid of Simple XML Single Value configurations which are deprecated like underLabel"(used twice in your example), linkFields and linkView

<dashboard>
  <label>Single Value Drilldown</label>
  <row>
    <panel>
      <single>
        <search>
          <query>index=_internal sourcetype=splunkd log_level="ERROR"
| timechart count</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="colorBy">value</option>
        <option name="colorMode">block</option>
        <option name="drilldown">all</option>
        <option name="numberPrecision">0</option>
        <option name="rangeColors">["0x65a637","0xf7bc38","0xd93f3c"]</option>
        <option name="rangeValues">[100,200]</option>
        <option name="showSparkline">1</option>
        <option name="showTrendIndicator">1</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
        <option name="trendColorInterpretation">standard</option>
        <option name="trendDisplayMode">absolute</option>
        <option name="trendInterval">-30m</option>
        <option name="unitPosition">after</option>
        <option name="useColors">1</option>
        <option name="useThousandSeparators">1</option>
        <drilldown>
          <link target="_blank">/app/search/orphaned_scheduled_searches?log_level=$row.count$&amp;earliest=$earliest$&amp;latest=$latest$</link>
        </drilldown>
      </single>
    </panel>
  </row>
</dashboard>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi vrmandadi,
using Splunk 6.6.x there is the possibility to use ui to define drilldown and choice to open a new tab or the same.
Anyway, the parameter to set new windows is

<drilldown>
     <link target="_blank">/app/myapp/mwdashboard</link>
</drilldown>

Bye.
Giuseppe

0 Karma

vrmandadi
Builder

Hello @cusello

I tried using t he parameter ,but no luck with it.It is not even opening the search on clicking nor to a new window

0 Karma

gcusello
SplunkTrust
SplunkTrust

I used on a test dashboard and runs!
could you share your drilldown option?
Bye.
Giuseppe

0 Karma

vrmandadi
Builder
<option name="drilldown">all</option>
<drilldown>
      <link target="_blank">/app/vams/404_error_cli</link>
 </drilldown>
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...