Skip to content

Stderr is not going to json

I see logs when I enable redirect to JSON in stderr of the container like:

2025-10-25T13:04:36.782Z nginx/run: 2025/10/25 13:04:36 [crit] 457#457: *1892 connect() to unix:/tmp/nginx.sock failed (2: No such file or directory) while connecting to upstream, client: 20.163.60.90, server: 0.0.0.0:443, upstream: "unix:/tmp/nginx.sock", bytes from/to client:0/0, bytes from/to upstream:0/0
2025-10-25T01:22:14.434Z nginx/run: 2025/10/25 01:22:14 [error] 224#224: *803 connect() failed (111: Connection refused) while connecting to upstream, client: 206.188.197.238, server: 0.0.0.0:443, upstream: "172.19.0.5:8080", bytes from/to client:0/0, bytes from/to upstream:0/0

Those should probably be JSON and go to stdout?