Hi,
I'm trying to use both drilldown and selection in a timechart to limit the events shown in an events view (note that this only a simple demo which should work on most systems to reproduce the problem):
<dashboard>
<label>☢ TEST ☢</label>
<row>
<panel>
<title>Timechart</title>
<chart>
<search>
<query>index="_internal" sourcetype="splunkd" | timechart count by log_level</query>
<earliest>-1h@h</earliest>
<latest>@h</latest>
</search>
<option name="charting.chart">column</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">collapsed</option>
<option name="charting.axisTitleY.visibility">collapsed</option>
<option name="charting.axisTitleY2.visibility">collapsed</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">stacked</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>
<option name="charting.fieldColors">{ "FATAL": 0x956E96, "ERROR": 0xD85D3C, "WARN": 0xF7902B, "WARNING": 0xF7902B, "INFO": 0x5379AF, "DEBUG": 0xD0D0D0 }</option>
<option name="charting.chart.showDataLabels">none</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<drilldown>
<set token="selected.levels">$click.name2$</set>
<set token="selected.timeRange.earliest">$earliest$</set>
<set token="selected.timeRange.latest">$latest$</set>
</drilldown>
<selection>
<set token="selected.levels">*</set>
<set token="selected.timeRange.earliest">$start$</set>
<set token="selected.timeRange.latest">$end$</set>
</selection>
</chart>
</panel>
</row>
<row>
<panel>
<title>Selected Events: $selected.levels$s from $selected.timeRange.earliest$ to $selected.timeRange.latest$</title>
<event>
<search>
<query>index="_internal" sourcetype="splunkd" log_level=$selected.levels|s$</query>
<earliest>$selected.timeRange.earliest$</earliest>
<latest>$selected.timeRange.latest$</latest>
</search>
<option name="count">10</option>
<option name="list.drilldown">full</option>
<option name="list.wrap">1</option>
<option name="maxLines">5</option>
<option name="raw.drilldown">full</option>
<option name="rowNumbers">0</option>
<option name="table.drilldown">all</option>
<option name="table.wrap">1</option>
<option name="type">table</option>
<fields>host, level</fields>
</event>
</panel>
</row>
</dashboard>
What I want:
Select a time range (drag mouse across Timechart😞 Show all events in the selected time range (log_level does not matter).
Select a part of a column in Timechart: Show all events in the selected time range with the selected log_level.
Select a specific log_level by clicking on a label in the legend: Show all events with the selected log_level in the time range of the Timechart.
What I have:
Using drilldown and selection
1. Works.
2. Does not work; Events with any log_level in the time range of the Timechart are shown.
3. Does not work; Events with any log_level in the time range of the Timechart are shown.
The label of Selected Events briefly shows the correct values but then switches to the wrong ones.
Using drilldown only
1. Does not work; Chart zooms in.
2. Works.
3. Works.
Using selection only
1. Works.
2. Does not work; Default drilldown is performed.
3. Does not work; Default drilldown is performed.
I'm using Splunk Enterprise 6.3.1
Kind regards,
Dominik
... View more