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ヶ月前297ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ