Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated JsonFormatter logs at 8191 characters #1890

Open
Mad4T opened this issue May 21, 2024 · 1 comment
Open

Truncated JsonFormatter logs at 8191 characters #1890

Mad4T opened this issue May 21, 2024 · 1 comment
Labels

Comments

@Mad4T
Copy link

Mad4T commented May 21, 2024

version
Monolog version: 3.0
Laravel: 10.0

Issue Description:
We're encountering log truncation at 8191 characters within our Laravel application deployed on AWS ECS. CloudWatch logs from this specific app are affected, while logs from other apps function normally.
We suspect a potential limitation within Monolog (version 3.0) might be causing this behavior.

Expected Behavior:
We expect CloudWatch logs from our Laravel app to be captured in their entirety without truncation.

Code Snippet (relevant part of logger.php):
'stderr' => [ 'driver' => 'monolog', 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], ]

@Mad4T Mad4T added the Support label May 21, 2024
@Seldaek
Copy link
Owner

Seldaek commented Jun 28, 2024

AFAIK there is no such limit in Monolog itself, but I am not very familiar with ECS and there might be something else there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants