Reporting

TimeRangePicker Module contains HiddenSavedSearch could not use cached saved search?

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

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

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

Contributor

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

0 Karma

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

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