Deploy logging system elk 5.0 (elasticsearch - logstash - kibana) by docker compose
Note: Use nginx to authen for kibana
Use elkcentral folder.
-
Use openssl to create username and password for nginx:
printf "USER:$(openssl passwd -crypt PASSWORD)\n" > nginx-config/passwords
-
Run command:
make up
If can't run elasticsearch container you should run command on hosts: sysctl -w vm.max_map_count=262144
See: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html
Use elkagent folder.
-
Create file docker-compose.yml:
cp docker-compose.tmpl.yml docker-compose.yml
-
Reconfig cpu, ram for containers and mount logs folder for filebeat
-
Create file filebeat.yml and reconfig:
cp filebeat-config/filebeat.tmpl.yml filebeat-config/filebeat.yml
-
Create file agent.conf and reconfig:
cp logstash-config/agent.conf.tmpl logstash-config/agent.conf
-
Run:
docker-compose up -d
Note: It will remove all database
- Run command:
make reup
- Access:
http://localhost:8080/
- Authen by: username
USER
, passPASSWORD