

With the autoRun="true" on the Search module, the very first push on page load doesn't hide the checkbox because nobody has pushed the TimeRangePicker's data downstream yet. IN this case you should move it up to the TimeRangePicker and not have any autoRun on the Search module.

It actually tells any module "when the page loads, start pushing data to all downstream from this point", and as such it should always be up at the top of the hierarchy.

You have an autoRun="True" but you've made a common mistake which is to put it on the Search module thinking it tells the Search module to run it's search. For the second you meant to check the getLatestTimeTerms not getEarliestTimeTerms.Ĭhanging that alone gets it to mostly work.Ģ) There is also a second lesser problem though. Now the checkbox goes away as soon as I change the time range and never comes back regardless of the setting.ġ) The main problem is that your if statement is only firing if the earliest time term is and also the earliest time term is "now". If & this.getContext().get("search").getTimeRange().getEarliestTimeTerms()="now")Īnd yes, I rebooted splunkweb to make sure application.js has been read by splunk after my change.ĮDIT: I just found 2 errors, thanks to google developper tools.ġ- there was a brace missing in my javascript.Ģ- I needed to get the context from "this". Var methodReference = (checkBoxModule) ĬheckBoxModule.onContextChange = function() ("LRO_ShowAutoRefreshCheckBox", function(checkBoxModule)
Splunk showhide panel sideview code#
But it's all there.Īnd here is the code I added in application.js: Select a reference panel to view a preview of the panel. See Filter the search for available panels. (Optional) Use the Filter option to search for specific panels. Expand the panel category Add Prebuilt Panel to view the reference panels available.

OK the code looks partly marked as code partly as regular comments. From the dashboard, select Edit > Edit Panels.
Index=os * | rex 'lvn-(?Additionally the app contains interfaces and tools including a visual authoring system you can use to create and edit Sideview XML dashboards. įor 5 mins auto-refresh select the "Last 60 minutes" time range. Most important are the Sideview UI modules, which offer improved functionality and easier configurability over the equivalent core Splunk 'Advanced XML' modules.