Reporting

TimeRangePicker Module contains HiddenSavedSearch could not use cached saved search?

hjwang
Contributor

as title mentioned, when TimeRangePicker Module contains HiddenSavedSearch just as follows

<module>name="TimeRangePicker" layoutPanel="panel_row2_col1" group="Test" 
  <param name="searchWhenChanged">True</param>
  <param name="default">Last 24 hours</param>
    <module name="HiddenSavedSearch" autoRun="True">
      <param name="useHistory">true</param>
      <param name="savedSearch">Test</param>
      <module name="ViewRedirectorLink">
        <param name="viewTarget">flashtimeline</param>
        <param name="label">View full results</param>
      </module>
      <module name="SimpleResultsTable"></module>
    </module>
</module>

when loading into this view, splunk will says 『No scheduled job was found for saved search "false".』. it must set param useHistory to be false to run correctly. in this case, can i use cached saved search to quickly show results?? thanks in advance.

0 Karma
1 Solution

araitz
Splunk Employee
Splunk Employee

HiddenSavedSearch will not load search artifacts if a TimeRangePicker passes down a time to it.

View solution in original post

0 Karma

araitz
Splunk Employee
Splunk Employee

HiddenSavedSearch will not load search artifacts if a TimeRangePicker passes down a time to it.

0 Karma

hjwang
Contributor

Thanks araitz. I got it. It can not be used in this form.

0 Karma

melting
Splunk Employee
Splunk Employee

First: You will need to schedule and have this job run at least once. Or you can switch the useHistory param to auto to run the search again.

Please see similar question

Second: I don't think you want the save search as a child of a timepicker since the saved search would already have been run over a specified time.

0 Karma

hjwang
Contributor

Thanks for your response,melting. I try to set useHistory param to auto but still not work at all. Splunk shows 『Configuration error - HiddenSavedSearch is being run as a schedule and is configured to listen to the time picker. Scheduled results will not be shown』. I think it's an order of module hierarchy problem. It might not be used in this turn.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...