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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...