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

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠