Dashboards & Visualizations

Can you add a dynamic label or text to a panel that reders a token value?

feickertmd
Communicator

I have some dynamic drilldown charts where the clicked value of the first is sent to the next, and so on. Is it possible to add an html line or a label that will utilize the token value.

Example:
Chart 1 called "Errors by Severity"
click a value in chart 1, and it goes to chart 2 called "Area (filtered by Level)"
The label for chart 2 should read "Area (filtered by Level $Level$)"

`

    <title>Errors by Severity</title>
    <searchString>sourcetype=*uls* host=apset0725  | stats  count by Level</searchString>
    <earliestTime>$time_tok.earliest$</earliestTime>
    <latestTime>$time_tok.latest$</latestTime>
    <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
    <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
    <option name="charting.axisTitleX.visibility">visible</option>
    <option name="charting.axisTitleY.visibility">visible</option>
    <option name="charting.axisTitleY2.visibility">visible</option>
    <option name="charting.axisX.scale">linear</option>
    <option name="charting.axisY.scale">linear</option>
    <option name="charting.axisY2.enabled">0</option>
    <option name="charting.axisY2.scale">inherit</option>
    <option name="charting.chart">pie</option>
    <option name="charting.chart.nullValueMode">gaps</option>
    <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
    <option name="charting.chart.stackMode">default</option>
    <option name="charting.chart.style">shiny</option>
    <option name="charting.drilldown">all</option>
    <option name="charting.layout.splitSeries">0</option>
    <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
    <option name="charting.legend.placement">right</option>
    <drilldown>
      <set token="Level">$row.Level$</set>
    </drilldown>
  </chart>
</panel>
<panel>
  <chart>
    <title>Errors by Area $Level$ (filtered by Level)</title>
        <html>

Level = $Level$

    <searchString>sourcetype=*uls* host=apset0725 Level=$Level$ | stats count by Area</searchString>
    <earliestTime>$time_tok.earliest$</earliestTime>
    <latestTime>$time_tok.latest$</latestTime>
    <option name="charting.legend.placement">right</option>
    <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
    <option name="charting.layout.splitSeries">0</option>
    <option name="charting.drilldown">all</option>
    <option name="charting.chart.style">shiny</option>
    <option name="charting.chart.stackMode">default</option>
    <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
    <option name="charting.chart.nullValueMode">gaps</option>
    <option name="charting.chart">pie</option>
    <option name="charting.axisY2.scale">inherit</option>
    <option name="charting.axisY2.enabled">0</option>
    <option name="charting.axisY.scale">linear</option>
    <option name="charting.axisX.scale">linear</option>
    <option name="charting.axisTitleY2.visibility">visible</option>
    <option name="charting.axisTitleY.visibility">visible</option>
    <option name="charting.axisTitleX.visibility">visible</option>
    <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
    <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
    <drilldown>
      <set token="Area">$row.Area$</set>
    </drilldown>
  </chart>
</panel>

`

Tags (2)
0 Karma

vasanthmss
Motivator

Try this,,

Dashboard 1:

<dashboard>
  <label>Errors by Severity</label>
  <description>Errors by Severity,,.....</description>
  <row>
    <panel>
      <table>

        <searchString>index=_internal | stats count by host | rename host as Level</searchString>
        <earliestTime>0</earliestTime>
        <latestTime/>
        <option name="drilldown">row</option>
        <drilldown>
          <link>
            <![CDATA[
                /app/search/newdashboard?Level=$row.Level$
            ]]>
          </link>
        </drilldown>
      </table>
    </panel>
  </row>
</dashboard>

Drilldown_Dashboard 2:

<dashboard>
  <label>newdashboard</label>
  <description/>
  <row>
    <panel>
      <table>
        <title>Area (filtered by Level $Level$)</title>
        <searchString>index=_internal | stats count by host</searchString>
        <earliestTime>0</earliestTime>
        <latestTime/>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">cell</option>
      </table>
    </panel>
  </row>
</dashboard>
V
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...