This project is to demonstrate how to log to the elk environment from a spring boot application by sending the logs via api instead of writing a file
- Docker installed
- Docker-compose installed
- All the needed ports must be free (check the ./elk/docker-compose.yml)
- Go in the elk folder
- Run docker-compose up -d
- Wait until all containers have started (check with docker logs -f <container_name>)
- Start the spring boot application
- Go to the kibana UI (http://localhost:5601)
- Go to Stack Management -> Index Patterns -> Create index pattern
- Add the index with pattern "spring-boot-elk-logs-*"
- Select the timestamp field and finish
- Go to Kibana -> Discover
- Now you're able to see the logs