# Time filter

**URL:** <https://discuss.elastic.co/t/time-filter/221140>\
**Category:** Kibana\
**Created:** [February 27, 2020, 4:42am UTC](https://discuss.elastic.co/t/time-filter/221140 "2020-02-27T04:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [February 27, 2020, 4:42am UTC](https://discuss.elastic.co/t/time-filter/221140/1 "2020-02-27T04:42:20Z")

</div>

Can I change/update the time filter I selected while creating an index pattern, once after the index pattern has been created?

---

<div class="post-metadata">

**Author:** ![Liza\_Katz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liza_katz/32/52358_2.png) [@Liza\_Katz](https://discuss.elastic.co/u/Liza_Katz)\
**Post date:** [February 27, 2020, 10:40am UTC](https://discuss.elastic.co/t/time-filter/221140/2 "2020-02-27T10:40:06Z")

</div>

Hey @cravinder489  
This is not supported in the Kibana UI, but you _can_ , if you want to, manipulate this using the [Kibana experimental API](https://www.elastic.co/guide/en/kibana/current/saved-objects-api.html).

If you wish to do this, start by identifying the ID of your index pattern.

Then use curl or another tool (I like Postman) to fetch the Index pattern  
`GET https://my-kibana/api/saved_objects/index-pattern/my-index-pattern`

Once you got that working, you can make a `PUT` request to the same URL, modifying the index pattern object. For your case, the payload would be:

`{"attributes": {"timeFieldName": "new_field_name"}}`

Beware that some existing visualizations \ dashboards already using that index pattern might show errors and require additional tweaking.

So, in short, move forward at your own risk, here!

---

<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:** [March 26, 2020, 10:40am UTC](https://discuss.elastic.co/t/time-filter/221140/3 "2020-03-26T10:40:08Z")

</div>

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