https://github.com/cuongnb14/elk-docker-compose
Deploy logging system elk 5.0 (elasticsearch - logstash - kibana) by docker compose
https://github.com/cuongnb14/elk-docker-compose
Last synced: 2 months ago
JSON representation
Deploy logging system elk 5.0 (elasticsearch - logstash - kibana) by docker compose
- Host: GitHub
- URL: https://github.com/cuongnb14/elk-docker-compose
- Owner: cuongnb14
- Created: 2016-11-29T06:59:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T02:14:24.000Z (over 8 years ago)
- Last Synced: 2025-01-13T10:51:55.120Z (9 months ago)
- Language: Makefile
- Homepage:
- Size: 114 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elk-docker-compose
Deploy logging system elk 5.0 (elasticsearch - logstash - kibana) by docker compose## Architecture Overview

Note: Use nginx to authen for kibana
## Deploy
### Central
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](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html)
### Agent
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`
## Redeploy
Note: It will remove all database
- Run command: `make reup`
## Use
- Access: `http://localhost:8080/`
- Authen by: username `USER`, pass `PASSWORD`