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!

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...