In this article, we will cover an example of an application that uses Springboot + ELK + Docker. It is a simple application, only intended to demonstrate the concepts. I won’t go into a detailed explanation of all the elements (if you’re not familiar with this stack, I suggest doing a little research before doing this tutorial).
Pre-requirements
- You must have docker installed on your machine.
- An IDE of your choice (Intellij, Eclipse, or Vscode)
- Some knowledge of Springboot, Elasticsearch, Logstash, Kibana, and Docker
Hands-On
Springboot Application
I’ll start with the application; I created a REST API with 4 endpoints: This is how the application’s Dockerfile was: