This document provide more details about how to setup ELK stack (Elasticsearch, Logstash, and WildFly) with WildFly. It is based upon all the good work done in https://github.com/nathanleclaire/elk and http://wildfly.org/news/2015/07/25/Wildfly-And-ELK/.
-
Find IP address of the Docker Machine:
docker-machine ip lab
-
Setup hosts in
/etc/hosts
:<DOCKER_HOST_IP> elasticsearch logstash kibana
-
Clone the repo:
git clone https://github.com/arun-gupta/elk.git cd elk . Run the ELK stack:
docker-compose up -d
This will use the pre-built Elasticsearch, Logstack, and Kibana images.
-
Run the instrumented WildFly image:
docker run -p 8080:8080 -it -e <DOCKER_HOST_IP> arungupta/wildfly-logstash
-
Access Kibana:
http://kibana