0

我们每天都将数据记录到 cloudwatch 日志中。我想每小时/每天将其推送到 S3 批次。

nodejs 中是否有任何现有的 lambda 库来实现这一点?

4

1 回答 1

0

Logwatch 在 logwatch.config 上配置 logwatch(您可以在其中配置 mailTo 和 mailFrom。

手动运行 logwatch

sudo logwatch --detail high --mailto testmail@mailinator.com --service all --range all

或者

使用 Winston/winston-daily-rotate-file,一个用于 Node.js 的多功能日志库

于 2018-05-24T07:28:20.073 回答