每周删除最旧的数据

Deleting oldest data weekly

我正在使用 ELK 创建仪表板,但我想经常删除数据,实际上每分钟我都会收到 100 个新数据,我想每周删除最旧的数据。有什么建议吗

我建议使用 Curator https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/index.html

Curator 中有多个选项可以管理您在索引中的数据,您可以在特定天数后删除它们,我相信这正是您要找的。如果超过特定阈值,还可以选择根据磁盘大小删除数据。

希望对您有所帮助。

当他回答@ranjithkr 时,我们可以使用 Curator。 更多信息:http://www.madhur.co.in/blog/2017/04/09/usingcuratordeleteelasticindex.html