gpt4 book ai didi

amazon-web-services - Elastic Beanstalk 与 CloudWatch 日志和 Nginx

转载 作者:行者123 更新时间:2023-12-04 08:11:45 25 4
gpt4 key购买 nike

我已在 EBS 应用程序中激活 CloudWatch 日志。我已启用附加截图:

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 作为源)。

如何禁用/删除此错误?

谢谢。

最佳答案

这是因为 awslogs您的 EC2 实例上的应用程序正在寻找要发送到 CloudWatch 的文件。

您可以检查和编辑位于以下位置的配置文件:

/etc/awslogs/awslogs.conf

确保重新启动服务:
sudo service awslogs restart

您可以在那里指定自己的文件并创建不同的组,等等。

资源:

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

关于amazon-web-services - Elastic Beanstalk 与 CloudWatch 日志和 Nginx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44352521/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com