I created a dashboard including a realtime timechart.
<module name="HiddenSearch" autoRun="True">
<param name="search">index="foo" sourcetype="foo" | timechart span=5m count as PV</param>
<param name="earliest">rt-24h</param>
<param name="latest">rt</param>
<module name="EnablePreview">
<param name="enable">true</param>
<param name="display">false</param>
<module name="HiddenChartFormatter">
<param name="chart">line</param>
<param name="primaryAxisTitle.text">Time</param>
<param name="chart.stackMode">default</param>
<param name="secondaryAxisTitle.text">Count</param>
<module name="FlashChart">
<param name="width">100%</param>
<param name="height">250px</param>
</module>
<module name="ViewRedirectorLink">
<param name="viewTarget">flashtimeline</param>
<param name="label">View results</param>
</module>
</module>
</module>
</module>
Because the data crosses 24h and is big, every time I open the dashboard, the chart will reload completely. That will take a long long long time to finish.
My question is whether the realtime search result can be saved so that I can view the report immediately if I open the dashboard?
You can schedule the realtime search, then you will be attached to that job when you open the dashboard and get the current resultset immediately. For that you need to save the search instead of specifying it inline in the view.
But if i use the scheduled search result in my dashboard, i could not see the realtime incoming results on the chart...