# Wanted to know how can i delete the no of logs stored so that it displays only for 2 days

**URL:** <https://discuss.elastic.co/t/wanted-to-know-how-can-i-delete-the-no-of-logs-stored-so-that-it-displays-only-for-2-days/181248>\
**Category:** Elasticsearch\
**Created:** [May 15, 2019, 5:49pm UTC](https://discuss.elastic.co/t/wanted-to-know-how-can-i-delete-the-no-of-logs-stored-so-that-it-displays-only-for-2-days/181248 "2019-05-15T17:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![syed\_faheem\_Hussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syed_faheem_hussain/32/46047_2.png) [@syed\_faheem\_Hussain](https://discuss.elastic.co/u/syed_faheem_Hussain)\
**Post date:** [May 15, 2019, 5:49pm UTC](https://discuss.elastic.co/t/wanted-to-know-how-can-i-delete-the-no-of-logs-stored-so-that-it-displays-only-for-2-days/181248/1 "2019-05-15T17:49:08Z")

</div>

Where and what do i need the configuration to be given so that when i select the index in Kibana i should see only 2 days logs and previous all should be deleted ?

Is the configuration in Kibana or Elastic search

---

<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:** [June 12, 2019, 5:49pm UTC](https://discuss.elastic.co/t/wanted-to-know-how-can-i-delete-the-no-of-logs-stored-so-that-it-displays-only-for-2-days/181248/2 "2019-06-12T17:49:11Z")

</div>

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