我已经安装了 ELK 和最新的 curator 4.0。我想让它在 linux 中使用 cronjob 定期运行。
- 我已经在 linux home 安装了 .curator ,即
cd~
. - 我已经输入了
crontab -e
。 - 我输入以下语句
* * * * * /.curator curator action.yml
这个设置对吗?我应该如何检查它是否正在运行?
我已经安装了 ELK 和最新的 curator 4.0。我想让它在 linux 中使用 cronjob 定期运行。
cd~
.crontab -e
。* * * * * /.curator curator action.yml
这个设置对吗?我应该如何检查它是否正在运行?
1 - 策展人安装结帐:https ://www.elastic.co/guide/en/elasticsearch/client/curator/current/installation.html
2 - 您可以像这样编辑 crontab 条目。没关系。
3 - 如果您正确安装 curator,您可以运行:
* * * * * curator /path/to/action/file/action.yml
action.yml
这将使用指定的文件每分钟运行 curator 。
对于 crontab 日志结帐:https ://askubuntu.com/questions/56683/where-is-the-cron-crontab-log
您还可以在配置中设置日志文件的路径。
日志记录:日志级别:INFO 日志文件:/home/logs/curator.log 日志格式:默认