Join Slack
Powered by
This message was deleted.
# general
s
Slackbot
06/29/2023, 10:06 AM
This message was deleted.
ā 1
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.
š 1
5
Views
Open in Slack
Previous
Next