Cloudwatch logging with awslogs not working with our Symfony based framework API

0

Hi,

requesting help with regards to our Symfony framework logging to Cloudwatch. this Symfony has a built-in monolog capable of stdout/stderr my problem is we cannot send any Symfony logs to Cloudwatch log groups. but Apache logs (error and request logs) can be successfully sent.

also tested via the local docker environment, and the stdout/stderr seems to be working fine. all logs from Symfony can be seen without any problem

are there any specific configurations for Symfony monolog?

Our setup is, Symfony is running via ECS

here's the link, which I also posted to Symfony (with details about the problem) https://github.com/symfony/symfony/discussions/51262

any help is appreciated. Thanks

已提问 9 个月前298 查看次数
1 回答
0

Hi,

I'm not using PHP at all, but according to this post on stackoverflow.com PHP must catch the output of their processes like error_log = /proc/self/fd/2 and catch_workers_output = yes. Then, I assume PHP will write the stream into /dev/stderr.

profile picture
Donov
已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则