Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Blog Post: Collecting file-based Java logs with OpenTelemetry #5606

Open
cyrille-leclerc opened this issue Nov 13, 2024 · 3 comments
Open

Comments

@cyrille-leclerc
Copy link
Member

Title of the blog post

Collecting file-based Java logs with OpenTelemetry

Authors

@cyrille-leclerc, @zeitlinger

Short description of the blog post

This blog post shows how the experimental-otlp/stdout export format recently introduced in OTel Java Instrumentation (see otel-java#6675) enables a turnkey ingestion pipeline when logs can't be transported through OTLP.

Prior to experimental-otlp/stdout, practitioners had to combine painful enrichment & formatting of logs in their Java app with cumbersome parsing rules in the OTel Collector.

Outline of blog post

  • Problem description: the challenges to use file based logs for Java instrumentation with OTel
  • Solution description: OTLP/JSON logs is now a turnkey feature both in the OTel Java Instrumentation and in the OTel Collector
  • Reference architecture: architecture diagram including a Java app instrumented with OTel, the routing of OTel traces, metrics, and logs, and the OTel Collector pipelines
  • Step by step guide to setup OTLP/JSON logs through stdout coverign both the Java app and the OTel Collector
  • Step by step guide to do the same in Kubernetes, adding to the steps above the parsing of the container log prefixes
  • Conclusion

Technology used

SIG

Sponsor

@svrnm
Copy link
Member

svrnm commented Nov 14, 2024

Thanks @cyrille-leclerc, looks good to me overall!

@open-telemetry/java-maintainers please take a look

@jack-berg
Copy link
Member

Makes sense to me. 👍

@svrnm
Copy link
Member

svrnm commented Nov 15, 2024

awesome. then let's go for it.

to make things easy, I assume that @zeitlinger is the sponsor for this PR and provides a review accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants