我正在使用CloudWatch日志流到Amazon服务(https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_ES_Stream.html)
目前,我已经将Cloudwatch中的事件过期设置为7天,用于流到Elasticsearch的Cloudwatch日志组。这也将负责清理Elasticsearch中即将到期的日志吗?我想避免在Elasticsearch中耗尽空间。
发布于 2022-05-18 06:04:52
不,不会的。
Cloudwatch日志和elasticsearch (现在迁移到Opensearch)是两个不同的服务。您需要为您的elasticsearch集群安装一些清洁机制(例如,每天的lambda)
https://serverfault.com/questions/910046
复制相似问题