在一个月之前从Elasticsearch删除数据(Delete data from Elasticsearch before one month)

编程入门 行业动态 更新时间:2024-10-15 16:22:15
在一个月之前从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 90

I 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

更多推荐

本文发布于:2023-08-06 20:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1455768.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在一   个月   数据   data   month

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!