Join Slack
Powered by
Hi, I have just started exploring SigNoz, need one...
# general
p
Purti Rajpal
06/29/2023, 10:06 AM
Hi, I have just started exploring SigNoz, need one help. How do I collect logs from std out and send to SigNoz for spring boot application?
p
Prashant Shahi
06/30/2023, 7:33 AM
Hi
@Purti Rajpal
👋 You could refer to these exampels: •
https://github.com/open-telemetry/opentelemetry-java-examples/tree/main/logging
•
https://github.com/open-telemetry/opentelemetry-java-examples/tree/main/log-appender
•
https://github.com/open-telemetry/opentelemetry-java-examples/tree/main/javaagent
Prashant Shahi
06/30/2023, 7:35 AM
However, it would be a lot easier to collect logs using filelog receiver. That can be easily done in K8s using K8s-Infra:
https://signoz.io/docs/tutorial/kubernetes-infra-metrics/
Prashant Shahi
06/30/2023, 7:35 AM
In case of other platforms, you could use otelcol binary or docker with filelog receiver. Ref:
https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver
p
Purti Rajpal
06/30/2023, 11:05 AM
Thanks
@Prashant Shahi
for so many options. I tried the otel java agent and used the env variable OTEL_LOGS_EXPORTER=otlp and now I can see the logs in the UI.
2
Views
Open in Slack
Previous
Next