Tech Geek
Tech Geek

Reputation: 465

Elastic Search Storage Purging in local

I know if we've installed ES on Linux, the default data folder is in /var/lib/elasticsearch (CentOS) or /var/lib/elasticsearch/data (Ubuntu).

My question is

  1. Whether the ES does any purging internally.If it does, what will the interval and size it does.
  2. Also when hitting thruough api, it will give records from any date or any restriction on that too ?

Please answer!

Upvotes: 0

Views: 272

Answers (1)

xeraa
xeraa

Reputation: 10859

By default, all the data is kept indefinitely. You will have to delete an index manually or use a tool like Elastic Curator or Index Lifecycle Management to remove data automatically.

Deleting lots of individual documents from an index is not recommended, because the following merge (that will actually free the disk space) will be quite expensive.

All the data that is currently stored can be searched. Though any filters (to limit the searched timeframe for example) will help to speed up search operations.

Upvotes: 1

Related Questions