Skip to content

Exemple of correlation log using Spring Cloud Sleuth and ELK

License

Notifications You must be signed in to change notification settings

alex-carvalho/log-correlation

Repository files navigation

Log correlation

Example of log correlation using Spring Cloud Sleuth and ELK stack.

This project has 4 services, have the flow:

                       -> Service-C
Service-A -> Service-B 
                       -> Service-D
  • Service-A - is Spring MVC, call Service-B
  • Service-B - is Spring Webflux, call Service-C and Service-D simultaneously, both Spring MVC

Witch service has one endpoint to generate log:

Docker compose file have all services and ELK stack configured

Use the start.sh to run the project, they will generate build of jar files, execute docker-compose, await kibana stay health, create index pattern and make some requests to generate logs.

After star is complete acess: http://localhost:5601/app/discover#/

Log flow:

image

Log correlation in Kibana

image

About

Exemple of correlation log using Spring Cloud Sleuth and ELK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published