【问题标题】:How do I setup the deletion of old logs?如何设置删除旧日志?
【发布时间】:2020-03-07 13:42:10
【问题描述】:

运行 yugabyte db 一段时间后,我看到日志从未被删除。如何配置服务器以删除旧日志?

【问题讨论】:

    标签: database distributed-database yugabyte-db


    【解决方案1】:

    目前 YugabyteDB 不提供自动删除旧日志的方法。 您可以通过在 crontab 中运行删除旧文件的 bash 脚本来实现此目的。

    例子:

    https://askubuntu.com/questions/589210/removing-files-older-than-7-days

    Delete files older than specific date in linux

    https://askubuntu.com/questions/413529/delete-files-older-than-one-year-on-linux

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-09
      • 2011-02-09
      • 1970-01-01
      • 2015-04-26
      • 2018-04-15
      • 2013-05-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多