在一个月之前从Elasticsearch删除数据(Delete data from Elasticsearch before one month)
我想从我的Elasticsearch基础中删除数据,所以我只获得了过去一个月的数据。 这是可能的XDELETE调用或类似的? 可以用cronjob或类似的设置。
I would like to remove data from my Elasticsearch base, so i only got data from the past month. Is this possible in a XDELETE call or similar? Could be setup with a cronjob or similar.
最满意答案
我认为你需要策展人功能。 在这里看到关于这个和另一个的博客文章。 您可以在网上找到各种示例,将它作为cron作业运行。 例如在这里或这里 :
20 0 * * * /usr/local/bin/curator --host 127.0.0.1 -d 120 -c 90I think you need the curator feature. See here a blog post about this and another one here. And you can find various example on the web for running it as a cron job. For example here or here:
20 0 * * * /usr/local/bin/curator --host 127.0.0.1 -d 120 -c 90更多推荐
发布评论