#support

Troubleshooting Docker Logging Issues with Signoz Solution

TLDR Sadri has issues with Docker logs not showing up in signoz. He suggested and successfully tried using ALLOW_TTY to include Docker logs. The new topic by Dax regarding agent auto instrument in golang hasn't been addressed.

Powered by Struct AI
Aug 26, 2023 (1 month ago)
Sadri
Photo of md5-ca6495d5be926db80e09aabf066f4b8b
Sadri
04:08 PM
Hi everyone,
I just started using signoz self hosted solution and I really like the platform.
I'm facing one issue though with logs, only mysql docker instance logs are showing up in the system. I run all my services in docker container so I expect that all docker logs should automatically show up in signoz as well (at least this is how I understood the docs pages). I have 8 other docker containers, I see all the services in signoz, I see traces everywhere where implemented, only logs are missing. Any idea how can this be fixed? All my apps are golang apps and if checked with docker logs command logs are properly being produced.
09:20
Sadri
09:20 PM
I think the problem is that docker containers that are using -t (tty) are excluded, so in order for logspout to include their logs we need to add ALLOW_TTY as argument to logspout config
09:25
Sadri
09:25 PM
Adding the ALLOW_TTY as env var to logspout worked for me 😄
Aug 28, 2023 (1 month ago)
Dax
Photo of md5-fc3f3e2a676a7c15e16e3810d7df5cc1
Dax
08:01 AM
does have the agent auto instrument in golang as java agent.jar?