This repository contains a few examples how to run Elasticsearch, Kibana, Beats, and Logstash in Docker using the official images and binding them to the default ports. Tested with the latest version of the Docker daemon.
You connect to Kibana on http://localhost:5601 and Elasticsearch on http://localhost:9200.
- Start:
$ docker-compose -f elasticsearch-kibana-minimal.yml up
- Remove:
$ docker-compose -f elasticsearch-kibana-minimal.yml down
- Start:
$ docker-compose -f elasticsearch-kibana.yml up
- Remove:
$ docker-compose -f elasticsearch-kibana.yml down
Change into the full_stack/ directory. This includes Elasticsearch, Kibana, Beats, Logstash, nginx, and MySQL and monitors all components with the Elastic Stack.
Note: You will need to increase the memory for all the containers to function correctly. Tested with 4GB instead of the default of 2GB.
- Start:
$ docker-compose up
- Remove:
$ docker-compose down
Change into the rolling_upgrade/ directory. This demos a rolling upgrade from 6.x to 7.x. See the details in the readme.
- Start:
$ docker-compose up
- Remove:
$ docker-compose down
Change into the machine_learning/ directory. This includes Elasticsearch and Kibana as well as setting up the index patterns and dashboards for Filebeat. It assumes that you have a log.json file in the same directory, which will be imported automatically. Example entry:
{"source":"/home/ec2-user/data/production-3/prod3elasticlogs/_logs/access-logs228.log","beat":{"hostname":"ip-172-31-5-206","name":"ip-172-31-5-206","version":"5.4.0"},"@timestamp":"2017-02-28T17:14:26.963Z","read_timestamp":"2017-06-20T08:47:54.189Z","fileset":{"name":"access","module":"nginx"},"nginx":{"access":{"body_sent":{"bytes":"32898"},"url":"/static/img/wrapper-footer.png","geoip":{"continent_name":"North America","city_name":"Chicago","location":{"lat":42.0106,"lon":-87.6686},"region_name":"Illinois","country_iso_code":"US"},"response_code":"404","user_agent":{"device":"Other","os_name":"Other","os":"Other","name":"Other"},"http_version":"1.1","method":"GET","remote_ip":"213.222.148.205"}},"prospector":{"type":"log"}}
Note: You will need to increase the memory for all the containers to function correctly. Tested with 4GB instead of the default of 2GB.
- Start:
$ docker-compose up
- Remove:
$ docker-compose down