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 Answer
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
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions