How to change the default time filter of Kibana-4?

I created a control panel in Kibana-4 and shared it with my web application. But its default filter is 15 minutes.
How to change the default time filter in kibana-4?

+7
kibana-4
source share
3 answers

The time filter is not saved as part of the toolbar and should not be in my opinion. The information panel displays data organized in a certain way, and each user should be able to change the date range of his presentation, but they will consider it necessary.

If you want to change the default kibana value, you can do this by changing the code.
Go to the file "services / timefilter.js", and there is a variable called timeDefaults . You can change it according to the default value that interests you.

In code, it looks like this:

 var timeDefaults = { from: 'now-15m', to: 'now' }; 

The from and to properties are parsed using the ISO8601 format.

+8
source share

In 4.5.0, you can change it at any time in Kibana ui by going to "Settings" → "Advanced". See Link. Just edit timepicker:timeDefaults somehow like { "from": "now-90d", "to": "now", "mode": "quick" }

+13
source share

You can set the time filter in the link in the panel. For example, installation lasts 6 hours:

 kibana-host:5601/#/dashboard/My-Dashboard?_g=(time:(from:now-6h,mode:quick,to:now)) 
+7
source share

All Articles