gpt4 book ai didi

elasticsearch - Elasticsearch馆长cronjob

转载 作者:行者123 更新时间:2023-12-03 01:39:33 24 4
gpt4 key购买 nike

我打算让cronjob在Elasticsearch上担任策展人
0 17 * * * /usr/local/bin/curator_cli --host localhost delete indices --older-than 7 --time-unit days --timestring '\%Y.\%m.\%d' >> /var/log/curator.log 2>&1
它在日志上给我错误

Error: No such command "delete"

Error: no such option: --older-than



用什么命令替换delete和早于?

谢谢。

最佳答案

所以,然后我通过谷歌搜索找到了自己。
我只是使用yml来完成任务。
0 17 * * * /usr/local/bin/curator /opt/action.yml >> /var/log/curator.log 2>&1
这是action.yml:

client:
hosts:
- 127.0.0.1
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False

logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']

关于elasticsearch - Elasticsearch馆长cronjob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49021962/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com