0

How can I find out how long elasticsearch stores indexes?

For what period from which date to now.

It's in config elasticsearch.yml? or I need something else?

edit

No, I don't want delete indicies, I want to know, from which date I have indicies.

Win32Sector
  • 65
  • 2
  • 10
  • 2
    as long as nobody deletes it, i think. you can `flush` or `close` the indices the way you want.(https://www.elastic.co/guide/en/elasticsearch/guide/current/retiring-data.html) I would simply create cron jobs which would flush the indices if index created date is say 90 days before now. – prayagupa May 11 '17 at 07:35
  • Or actually you can use curator - https://github.com/elastic/curator with `action: delete_indices` – prayagupa May 11 '17 at 07:41
  • Possible duplicate of [Removing old indices in elasticsearch](http://stackoverflow.com/questions/33430055/removing-old-indices-in-elasticsearch) / [How to delete elastic search indices periodically?](http://stackoverflow.com/questions/38597842/how-to-delete-elastic-search-indices-periodically) – prayagupa May 11 '17 at 07:41

1 Answers1

1

Use Cerebro (formerly Kopf) or the management view in Kibana (DevTools) for manual operations and peeking around.

An index is deleted or rebuild with REST commands. So only on demand. This is typically scripted to delete by time filters. For example curator can do that.

Community
  • 1
  • 1
eckes
  • 10,103
  • 1
  • 59
  • 71