In a distributed application, we can use centralized logging, which provides a complete stack trace for a microservice-based application. To do this, you can use Elasticsearch, Logstash, and Kibana (ELK). In another of our books, Mastering Spring Boot 2.0, there is a complete practical example of how to implement centralized logging with ELK, and in this section we will provide you with an introduction to ELK. Take a look at the following diagram:
As you can see in the preceding diagram, we have successfully used ELK. The three open-source projects that make up ELK are as follows:
- Elasticsearch: Elasticsearch is an enterprise-grade search and analytics engine that can be widely distributed. It's an open-source search engine and is readily scalable. Elasticsearch can power extremely fast searches that support your data...