container logs are truncated
See original GitHub issueEnvironment summary
Ubuntu 16.04 64-bit installed with apt az version 2.0.23
I have a CLI program that outputs JSON to stdout.
I created a container that outputs over 36000 characters of JSON onto a single line
When I run az container logs -g my-rg -n my-cg --container-name my-container
It only returns the last ~2200 characters.
I ran the same container in ACS and verified that it wasn’t anything wrong with the container
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Solving truncated Azure Container Instance logs
The problem with it is that the logs in Azure Container Instances are being truncated and that is an open issue ever since...
Read more >DevOps: Truncate Docker container logs periodically to free ...
I've been disturbed by having my services unavailable on my machine because of “no space left on device”. Every time I was forced...
Read more >Truncated Log Events - Docker Community Forums
I have run a tcpdump on the docker host and observed that the message leaving the container and arriving in fluentd is a...
Read more >How to Clear Log Files of A Docker Container - TecAdmin
Clear Docker Container Log File · Option 1: In this option, first we will find the log file path and then truncate it....
Read more >How to clear the logs properly for a Docker container?
If this is not a production environment, then I'd say it would be safe to simply stop the container, truncate the log, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can get, at most, 8193 bytes back for a single line with the
az container logs
command. I have a test image that sends 1,024,000 characters to STDOUT, and while a local instance of the container yields all output viadocker logs
, only 8193 bytes are returned from ACI.Example output (same image):
I can report that we just ran into the same problem, so it still does not appear solved.