我在服务器上运行awslogs 代理,当我在 AWS 控制台中查看 CloudWatch 日志时,日志大约晚了 60 分钟。我们的服务器每小时产生大约 650MB 的数据,代理似乎跟不上。
这是我们的缩写配置文件:
[application.log]
datetime_format = %Y-%m-%d %H:%M:%S
time_zone = UTC
file = var/output/logs/application.json.log*
log_stream_name = {hostname}
initial_position = start_of_file
log_group_name = ApplicationLog
[service_log]
datetime_format = %Y-%m-%dT%H:%M:%S
time_zone = UTC
file = var/output/logs/service.json.log*
log_stream_name = {hostname}
initial_position = start_of_file
log_group_name = ServiceLog
有没有一种通用的方法来加快 awslogs 代理的速度?