Hi,
I have a dashboard with 91 panels in different rows. The first panel is a panel created for the sole purpose of doing a base search. The search is simple:
index=myIndex
The other 90 panels all do subsearches on this main search. This is to prevent CPU spikes. The problem that I'm facing right now is that the first panel is showing in the dashboard but it serves no purpose being showed.
My question:
How do I hide (not remove) this panel visually?
Create your search as a base search without a panel
<form version="1.1">
<label>Base search</label>
<search id="base">
<query> your search goes here </query>
<done>
<set token="sid">$job.sid$</set>
<done>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<panel>
<table>
<search>
<query>| loadjob $sid$
Well, you can hide a panel (if not any other way, you can just use css to make it invisible; I assume we're talking about simpleXML, not Dashboard Studio). But if your base search just returns a huge load of events, you might run into performance issues anyway.
The idea of base searches is that you use them to get data which is already relatively well aggregated and use the posprocessing searches to aggregate it further. For example you do
| stats count by field1 field2
as your base search and then you can do two separate postprocessing searches summarizing data separately over either of those fields. But the base search gives you already relatively well-trimmed data. You can get away with returning a small set of events from the base search but it can escalate quickly...