All Apps and Add-ons

TimeRangePicker is not working on the top of a savedsearch using sideview

royimad
Builder

Hello,

The results doesn't change when i pick up a new value from TimeRangePicker, I'm using sideview utils. Any idea how to fix this?

The code is the below:

<view autoCancelInterval="90" isVisible="true" objectMode="SimpleDashboard" onunloadCancelJobs="true" refresh="-1" template="dashboard.html">
  <label>Web Services Trends</label>
  <module name="AccountBar" layoutPanel="appHeader"/>
  <module name="AppBar" layoutPanel="navigationHeader"/>
  <module name="SideviewUtils" layoutPanel="appHeader"/>
  <module name="Message" layoutPanel="messaging">
    <param name="filter">*</param>
    <param name="clearOnJobDispatch">False</param>
    <param name="maxSize">1</param>
  </module>
  <module name="Message" layoutPanel="messaging">
    <param name="filter">splunk.search.job</param>
    <param name="clearOnJobDispatch">True</param>
    <param name="maxSize">1</param>
  </module>
  <module name="TitleBar" layoutPanel="viewHeader">
    <param name="actionsMenuFilter">dashboard</param>
  </module>


  <module name="TimeRangePicker" layoutPanel="panel_row1_col1" autoRun="True">
    <param name="searchWhenChanged">True</param>
    <param name="selected">Last 30 days</param>  

    <module name="GenericHeader" layoutPanel="panel_row1_col1" >
      <param name="label">Online errors summary</param>
    </module>
    <module name="SavedSearch" layoutPanel="panel_row1_col1">
      <param name="name">LOG_SUMMARY_TABLE</param>

      <module name="ViewstateAdapter">
        <param name="savedSearch">LOG_SUMMARY_TABLE</param>
        <!--<module name="JobProgressIndicator" /> -->
        <module name="EnablePreview">
          <param name="enable">True</param>
          <param name="display">False</param>
        </module>
        <module name="Table">
        </module>
      </module>
    </module>
  </module>
</view>
1 Solution

royimad
Builder

This is due to this warning i think.
link text

View solution in original post

0 Karma

sideview
SplunkTrust
SplunkTrust

If your savedsearch has a timerange, or if it's scheduled, then the timerange from the SavedSearch module will simply override the timerange from the TimeRangePicker.

Since there can be valid cases where you simply don't care that there's an upstream TimeRangePicker that you're overriding, the Sideview SavedSearch module does not actually warn you about this. The Splunk HiddenSavedSearch module on the other hand, warns you with a big red error message.

However essentially it's the same cause. You're specifying timerange twice and the deeper one wins.

0 Karma

royimad
Builder

This is due to this warning i think.
link text

0 Karma

sideview
SplunkTrust
SplunkTrust

Can you also post the search language of the savedsearch? I'm interested in what kind of a search it is, and also whether the timerange is specified explicitly in the searchstring.

Also can you tell me whether this is a scheduled saved search?

Are there any blue notifications or red error messages appearing at the top of the page?

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...