# TTL problem

**URL:** <https://discuss.elastic.co/t/ttl-problem/22768>\
**Category:** Elasticsearch\
**Created:** [March 19, 2015, 7:52pm UTC](https://discuss.elastic.co/t/ttl-problem/22768 "2015-03-19T19:52:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![onthefloorr](https://avatars.discourse-cdn.com/v4/letter/o/ee7513/32.png) [@onthefloorr](https://discuss.elastic.co/u/onthefloorr)\
**Post date:** [March 19, 2015, 7:52pm UTC](https://discuss.elastic.co/t/ttl-problem/22768/1 "2015-03-19T19:52:38Z")

</div>

Dear Elasticsearch,

We use the elasticsearch's \_ttl feature which is not clear to us. The next  
is written in the latest documentation :

## Expired documents will be automatically deleted regularly. You can dynamically set the indices.ttl.interval to fit your needs. The default value is 60s . The deletion orders are processed by bulk. You can set indices.ttl.bulk\_size to fit your needs. The default value is 10000.

Knowing this, we modified the indices.ttl.interval to 30s and  
indices.ttl.bulk\_size to 3. After, we sent some (2000) logs into our index  
with \_ttl : 1m .  
After a while, we noticed that more logs have been deleted as expected. So  
all logs were deleted within 30s after one minute elapsed but there only 3  
logs should have been deleted.  
Is this normal ? We thought that only 3 logs will be deleted. How is the  
deletion of logs implemented on the elasticsearch ? Could you give me more  
information on the deletion of logs ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a032659e-1170-42c8-b156-d66bf6c726cb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a032659e-1170-42c8-b156-d66bf6c726cb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:25am UTC](https://discuss.elastic.co/t/ttl-problem/22768/2 "2017-07-06T00:25:31Z")

</div>


