Example of Elasticsearch, Logstash, Kibana with Zipkin, Sleuth and Spring Boot
Used Docker to containerize environment.
MongoDB was used to store some example data.
- Two example services to test ELK.
- Books service requests orders-service so two logs are generated in a matter of one request. Two of them have the same
traceId
.
- Make sure you have
Docker
anddocker-compose
installed.
Docker CE INSTALLATION
Docker Compose INSTALLATION
- Build services:
docker-compose build
- Run services:
docker-compose up
- Request books-sevice to generate logs:
curl -X POST -I "localhost:8484/book/buy/The%20Great%20Gatsby?userName=testUserName"
- http://localhost:5601 - Kibana (At first launch it will ask for an index -> Type
log*
and select@timestamp
fortime filter field name
) - http://localhost:9411 - Zipkin