0

我已在我的EBS应用程序中激活了CloudWatch日志。具有CloudWatch日志和Nginx的Elastic Beanstalk

enter image description here

但是,当我看着awslogs.log,我能找到的所有时间这个错误:我有一个截图附着启用

cwlogs.push.stream - WARNING - 3317 - Thread-1 - No file is found with given path '/var/log/httpd/error.log*'. 
cwlogs.push.stream - WARNING - 3317 - Thread-1 - No file is found with given path '/var/log/httpd/access.log*'. 

我不知道为什么,因为httpd的是来自Apache的一项服务,我正在与Nginx合作(以Node.js作为起源)。

如何禁用/删除此错误?

谢谢。

回答

0

发生这种情况的原因是EC2实例上的awslogs应用程序正在查找要发送到CloudWatch的文件。

您可以查看和编辑位于配置文件:

/etc/awslogs/awslogs.conf 

确保重新启动服务:

sudo service awslogs restart 

你可以有自己指定文件,并创建不同的组,什么不可以。

资源:

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html