#support

Sending Golang Application Logs to SigNoz

TLDR Shivani asks how to send golang logs to SigNoz for a docker-deployed app. nitya-signoz suggests following a solution found in a GitHub issue comment and mentions an upcoming improvement.

Powered by Struct AI
Jun 13, 2023 (6 months ago)
Shivani
Photo of md5-44bf0583cfad970ddc4e2a07121fdf3e
Shivani
10:10 AM
HIi,
How to get your existing log messages to the SigNoz for the golang application?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:15 PM
How are you sending your logs to signoz ?
Shivani
Photo of md5-44bf0583cfad970ddc4e2a07121fdf3e
Shivani
12:18 PM
I don't know exactly How to do that. Can you guide me ?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:32 PM
• So you have golang application and you want to send logs to SigNoz.
• You are already sending logs to signoz but want the logs of previous days to be ingested to SigNoz
Can you let me know which of the above issue you are facing ?
Shivani
Photo of md5-44bf0583cfad970ddc4e2a07121fdf3e
Shivani
12:36 PM
I have golang application and I want to send logs to SigNoz.
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:37 PM
How are you deploying your golang application ? are you running it in docker/k8s/binary
Shivani
Photo of md5-44bf0583cfad970ddc4e2a07121fdf3e
Shivani
12:37 PM
With the docker
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
12:38 PM
In that case your logs will be automatically collected when you deploy your app
12:40
nitya-signoz
12:40 PM
As of now the logs won’t have much metadata like container name etc

So you can use this solution to add metadata https://github.com/SigNoz/signoz/issues/1597#issuecomment-1259234665

We have an issue opened where we will be adding the above support by default https://github.com/SigNoz/signoz/issues/2855 but for now you will have to do it manually as explained in the above link
Shivani
Photo of md5-44bf0583cfad970ddc4e2a07121fdf3e
Shivani
12:40 PM
Okay. I'll check it . Thanks

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community