Dashboards & Visualizations

TimeRangePicker

Keith_Holme
Engager

I am new to splunk and have a question regarding the TimeRangePicker. I have wrapped a couple of SearchSelectLister modules and a SimpleResultsTable (at varying depths) within the scope of a TimeRangePicker module. When I run this module I get the data in the SimpleResultsTable constrained by the TimeRangePicker (all good). The data that fills the SearchSelectLister modules however isn't constratined to the time range selected in the TimeRangePicker.

Any pointers would be much appreciated.

Tags (1)

sideview
SplunkTrust
SplunkTrust

Im afraid that the SearchSelectLister, SearchLinkLister, SearchRadioLister do not listen to the TimeRangePicker's time range. While they all do have a param called 'applyOuterIntentionsToInternalSearch' which makes them pay attention to the 'intentions' coming down from above, there is no corresponding switch that provides the same thing for time ranges.

This has been known internally for a while at least on some level but i think it may have been lost because i cant find anything filed around it.

For now I recommend trying to get by hardwiring the timerange using the 'earliest' param and the 'latest' param on the module.

Another more heavyweight way is to use a 'switcher' module like PulldownSwitcher, and beneath that switcher write basically the same UI N different ways, each with a different hardcoded timerange. There's an example or two of how to use switcher modules in the ui_examples app.

And its possible to make a StaticSelect module that outputs time terms, and use a stringreplace intention to write the selected time term into the search string itself. This approach could also be made to work but it has a number of drawbacks.

helge
Builder

This bug is still present in Splunk 6.0.1. Unbelievable.

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...