ELK on docker
Pre-requisite installations : i. Docker ii. Java
Steps to setup ELK stack using docker containers
-
Clone the git repository :
-
To run the stack, get inside the directory and run docker-compose
cd /docker-elk docker-compose up -d
-
Verify the installation.
sudo docker ps
-
Access Kibana by entering: http://localhost:5601 in your browser.
-
Post data to elasticsearch using Postman or curl
curl -XPUT -u elastic:changeme http://localhost:9200/movies/_doc/1 -d '{"director": "Burton, Tim", "genre": ["Comedy","Sci- Fi"], "year": 1996, "actor": ["Jack Nicholson","Pierce Brosnan","Sarah Jessica Parker"], "title": "Mars Attacks!"}' -H 'Content-Type: application/json'