我正在为我的 Symfony2.1 应用程序使用 Amazon Beanstalk(将 Linux AMI 与 Apache 结合使用)并且我激活了到 Amazon S3 的日志文件轮换。一切正常,但我想知道是否有任何方法可以将其他日志(位于其他位置)添加到轮换系统!
提前致谢!
最佳答案
你可以这样做。
files:
"/opt/elasticbeanstalk/tasks/systemtaillogs.d/webapp.conf":
mode: "000755"
owner: root
group: root
content: |
/var/app/support/logs/*.log
/var/log/httpd/error_log
/var/log/httpd/access_log
/var/log/messages
/var/app/current/code-igniter/application/logs/*log
"/opt/elasticbeanstalk/tasks/publishlogs.d/webapp.conf":
mode: "000755"
owner: root
group: root
content: |
/var/app/support/logs/*.log.*
/var/app/support/logs/*.gz
/var/log/httpd/*.gz
/var/app/current/code-igniter/application/logs/*log
关于logging - 将其他日志轮换到 Amazon S3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16987481/