我正在尝试将所有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/*"中的所有日志?
可能的其他解决方案?
1条答案
按热度按时间9gm1akwq1#
使用AWS Firelens进行日志转发工作正常。
https://docs.newrelic.com/docs/logs/forward-logs/aws-firelens-plugin-log-forwarding/