Pages

03 June, 2024

Docker json file log driver unescape

I am running docker on EC2 and my app is running as a container in this docker.


It produces a log like this:
{"key": "value"}



This is the output from docker logs . If I check the daemon log of the container from the /var/lib/docker/container/
{"log": {\"key\": \"value\"}}



Is there a way to unescape this in the daemon logs? There is a complex use case which can't be explained for me to use these logs.

No comments:

Post a Comment

Thanks