Did you change the logging driver recently? The default is json-file. that is what you are using.
Its weird that Logpath is empty. Can you check Logconfig in the “docker inspect” for container.
Worstcase, try restarting the daemon and see if it helps.
We use shell scripts to launch the containers and one of the options sourced from a different file was passing a log option.
–log-opt awslogs-stream
This seems to be the reason the logs are unreadable.
Thanks for having a look. If I can get the logs readable, I’ll post here to help anyone else using AWS.
When I ran docker info, the logging driver was json-file. However, when I ran docker inspect <container id>, the LogConfig was not set up and the LogPath was blank.
To fix the issue, I changed the logConfiguration in the task definition and restarted the service. This was the configuration I used: