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 個月前檢視次數 299 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南