This is a test dashboard Im working on :
<dashboard>
<label>Testing</label>
<row>
<panel depends="$hide_panel$">
<event>
<title>Test Panel</title>
<search>
<query>sourcetype=bluecoat:proxysg:access:syslog news | head 1</query>
<earliest>rt</earliest>
<latest>rt</latest>
<progress>
<condition match="'job.resultCount' == 0">
<unset token="hide_panel"></unset>
</condition>
<condition>
<set token="hide_panel">true</set>
</condition>
</progress>
</search>
<option name="table.sortDirection">asc</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">list</option>
<option name="count">10</option>
</event>
</panel>
</row>
</dashboard>
when I edit it using the UI, for example the time period, then save it, some of the code gets deleted and it ends up like this:
<dashboard>
<label>Testing</label>
<row>
<panel depends="$hide_panel$">
<event>
<title>Test Panel</title>
<search>
<query>sourcetype=bluecoat:proxysg:access:syslog news | head 1</query>
<earliest>rt-30s</earliest>
<latest>rt</latest>
</search>
<option name="table.sortDirection">asc</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">list</option>
<option name="count">10</option>
</event>
</panel>
</row>
</dashboard>
All the code for the panel hide/reveal has gone.
Anyone know why?
And also, I cant seem to get this to hide/reveal when using a 5 minute window either.
Thanks!
... View more