This repository has all the artifacts needed to run a demo of ELK with the sample spring boot apps
Spring boot application that runs the orders microservice
Spring boot application that runs the shipping microservice
The docker-compose.yml starts elasticsearch, logstash and kibana
This contains the configurations for filebeat to source logs from the orders and shipping microservices
- Docker
- Java 8
- Filebeat 6.6 (https://www.elastic.co/guide/en/beats/filebeat/6.6/filebeat-installation.html)
- Configure filebeat Replace contents of filebeat.yml with that in elk-docker/filebeat-conf/filebeat.yml
- Configure filebeat to read logs from the apps Modify the elk-docker/filebeat-conf/orders.yml and elk-docker/filebeat-conf/shipping.yml to point to the location of the logs
- Copy elk-docker/filebeat-conf/orders.yml and elk-docker/filebeat-conf/shipping.yml to the conf folder inside filebeat directory
- Start docker
- Start the elk stack, navigate to the elk-docker folder
docker-compose up
- Start filebeat
./filebeat -e -c filebeat.yml -d "publish"
- Start the orders application, navigate to the orders app folder
mvn spring-boot:run
- Start the shipping application, navigate to the shipping app folder
mvn spring-boot:run -Dserver.port=9000
- Login to kibana at http://localhost:5601
- Import indexes and other ELK config using elk-configs/elkSavedObjects.json