# Kibana time filter change dynamically API

**URL:** <https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732>\
**Category:** Kibana\
**Created:** [October 17, 2022, 6:20am UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732 "2022-10-17T06:20:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PabloCuestaGarcia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablocuestagarcia/32/112131_2.png) [@PabloCuestaGarcia](https://discuss.elastic.co/u/PabloCuestaGarcia)\
**Post date:** [October 17, 2022, 6:20am UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/1 "2022-10-17T06:20:58Z")

</div>

Hi all.  
I would like to know if it is possible to dynamically change the time range in Kibana according to the last load data.  
I mean, I have an ETL loading data every day, but some days the data comes empty, the process may fail or not yet fired, for that, I need to change the time selector filter in kibana dynamically to be able to show the data of the last loaded day.  
I am thinking of building a python script to check the data of the last loaded day and change the global time filter according to the last loaded data.  
Is that possible?  
Thanks!!!!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 17, 2022, 11:48pm UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/2 "2022-10-17T23:48:21Z")

</div>

Welcome to our community! 😃

There's nothing native to the stack that can do this, so your approach would be the best one.

---

<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:** [November 13, 2022, 9:25am UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/3 "2022-11-13T09:25:14Z")

</div>



---

<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 10, 2022, 8:09pm UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/4 "2022-12-10T20:09:11Z")

</div>



---

<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:** [January 7, 2023, 4:37pm UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/5 "2023-01-07T16:37:56Z")

</div>



---

<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:** [February 4, 2023, 4:38pm UTC](https://discuss.elastic.co/t/kibana-time-filter-change-dynamically-api/316732/6 "2023-02-04T16:38:34Z")

</div>

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