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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...