You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a weird behaviour of awslogs driver in ECS when it comes to sending logs to CloudWatch.
My web Python app (Docker, FastAPI) writes logs to the stdout using aws-embedded-metrics-python. This works just fine when running locally in Python or in Docker.
However, in AWS ECS, if the following two logs are sent:
I'm seeing a weird behaviour of
awslogs
driver in ECS when it comes to sending logs to CloudWatch.My web Python app (Docker, FastAPI) writes logs to the stdout using
aws-embedded-metrics-python
. This works just fine when running locally in Python or in Docker.However, in AWS ECS, if the following two logs are sent:
only 1. is seen in CW.
If I swap the order to the following:
then both 1. and 2. are seen in CW.
If I print something like this:
Then 1., 2. and 3. are sent to CW.
It is as if
awslogs
ignored/buffered the last log if it happens to be in EMF format. Is this a documented / known behaviour or a bug?The text was updated successfully, but these errors were encountered: