# Change the default time range?

**URL:** <https://discuss.elastic.co/t/change-the-default-time-range/107516>\
**Category:** Kibana\
**Created:** [November 14, 2017, 8:57am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516 "2017-11-14T08:57:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathiasrichter](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@mathiasrichter](https://discuss.elastic.co/u/mathiasrichter)\
**Post date:** [November 14, 2017, 8:57am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516/1 "2017-11-14T08:57:52Z")

</div>

The default the time range in Kibana is set to the last 15 minutes in any dashboard. Is there any way to change this default?

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [November 14, 2017, 9:11am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516/2 "2017-11-14T09:11:55Z")

</div>

hi, as workaround, you can change source file in /kibana\_path/src/ui/ui\_settings/default.js.  
find row with value: "from" : "now-15m",  
and change value of "from" to something another value, for example set to "now-1h".  
after discover plugin by default will return data for last 1 hour

i didn't find opportunity to override this value with kibana.yml

---

<div class="post-metadata">

**Author:** ![mathiasrichter](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@mathiasrichter](https://discuss.elastic.co/u/mathiasrichter)\
**Post date:** [November 14, 2017, 9:29am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516/3 "2017-11-14T09:29:05Z")

</div>

thanks - this solves my problem.

would be great to see this default made configurable in kibana.yml so we don't have to change source code.

---

<div class="post-metadata">

**Author:** ![mathiasrichter](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@mathiasrichter](https://discuss.elastic.co/u/mathiasrichter)\
**Post date:** [November 14, 2017, 9:37am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516/4 "2017-11-14T09:37:48Z")

</div>

actually, this default should be configurable per dashboard - as each dashboard might look at data in different time resolutions by default.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 12, 2017, 9:38am UTC](https://discuss.elastic.co/t/change-the-default-time-range/107516/5 "2017-12-12T09:38:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
