Simple Java Project which runs on Tomcat. Inside Tomcat container runs Filebeat service which provides tomcat web access logs to Kafka container. Kafka receives logs with topic and send it to Logstash. Logstash send logs to ELK Stack. All containers running on Docker-Compose Environment. Pull project and push it to your CI/CD environment.
- Run command with docker container id $ docker exec -it kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic hello-world-topic
- Refresh web page(http://localhost:8080) and wait for logs
$ curl -X GET "localhost:9200/_cat/indices?v"
- Open web url on browser http://localhost:5601
- Navigate to "Stack Management" > "Kibana" > "Index Management"
- Create index pattern > hello-world-logs
- Navigate to "Discover" menu on the top and watch logs