0

我已经安装了 ELK 和最新的 curator 4.0。我想让它在 linux 中使用 cronjob 定期运行。

  1. 我已经在 linux home 安装了 .curator ,即cd~.
  2. 我已经输入了crontab -e
  3. 我输入以下语句* * * * * /.curator curator action.yml

这个设置对吗?我应该如何检查它是否正在运行?

4

2 回答 2

3

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

于 2016-07-28T09:14:21.297 回答
0

您还可以在配置中设置日志文件的路径。

日志记录:日志级别:INFO 日志文件:/home/logs/curator.log 日志格式:默认

于 2017-03-28T08:47:50.623 回答