如何将所有ECS服务日志发送到LogStash

hwamh0ep  于 2022-12-09  发布在  Logstash
关注(0)|答案(1)|浏览(155)

我正在尝试将所有AWS ECS日志转发到Logstash。检查一些文档,我只找到了定义特定Cloudwatch日志组的方法:

input {
    cloudwatch_logs {
        log_group => ["/aws/ecs/a","/aws/ecs/b","/aws/ecs/c","/aws/ecs/d","/aws/ecs/e","/aws/ecs/f"]
        start_position => "end"
        access_key_id => "<access_key>"
        secret_access_key => "<secret_access_key>"
        region => "eu-west-2"
        tags => ["cloudwatch_syslog"]
    }
}

是否有办法转发“/aws/ecs/*"中的所有日志?
可能的其他解决方案?

相关问题