Have something interesting to share with Java Eastern Europe community?
Become a speaker now
Philipp Krenn

Philipp Krenn

Developer Advocade at Elastic, Austria

Philipp lives to demo interesting technology. Having worked as a web, infrastructure, and database engineer for over ten years, Philipp is now working as a developer advocate at Elastic — the company behind the Elastic Stack consisting of Elasticsearch, Kibana, Beats, and Logstash. Based in Vienna, Austria, he is constantly traveling Europe and beyond to speak and discuss open-source software, search, databases, infrastructure, and security.

Speaker's activity
Bootiful Logging
Talk
English

Your Spring Boot application is up and running. You are ready to move it to production and obviously, you want to add some logging. How do you do that while avoiding unnecessary work and getting the most out of your logs?

The practical examples are based on Spring Boot and the Elastic Stack (or ELK Stack) though the general principles will generally apply:

  • Don’t parse with regular expressions if you can avoid it.
  • Do use the features of log appenders for more structured events.
  • Don’t write log files in Docker or Kubernetes.
  • Do add correlation IDs for distributed tracing.

Stop making logging complicated and get it to production quicker.