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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...