Drop-in ELK logging sidecar for Docker Compose projects — ships Nginx access logs through Filebeat → Logstash → Elasticsearch and surfaces them in Kibana, without touching your existing compose setup.
Nginx 액세스 로그를 ELK 스택으로 수집·시각화하는 Docker Compose 사이드카입니다. 기존 compose 파일을 수정하지 않고 -f 옵션으로 붙여서 사용합니다.
Nginx ──(access.log)──► Filebeat ──► Logstash ──► Elasticsearch ◄── Kibana
| Component | Version |
|---|---|
| Elasticsearch | 8.5.3 |
| Logstash | 8.5.3 |
| Kibana | 8.5.3 |
| Filebeat | 8.5.3 |
Run alongside your existing compose file:
docker compose -f docker-compose.prod.yml -f docker-compose.logging.yml up --buildKibana: http://localhost:5601
Log index pattern: weblogs-yyyy.MM.dd
- Go to http://localhost:5601 → search Index Management
- Confirm
weblogs-*indices exist - Analytics → Dashboard → Create data view → pattern:
weblogs-* - Create Visualization → drag fields onto the canvas
logging-example/
├── elasticsearch/
│ ├── config/elasticsearch.yml
│ └── Dockerfile
├── filebeat/
│ ├── config/filebeat.yml
│ └── Dockerfile
├── kibana/
│ ├── config/kibana.yml
│ └── Dockerfile
└── logstash/
├── config/logstash.yml
├── pipeline/logstash.conf
└── Dockerfile
your-project/
├── nginx/
│ └── log/ ← auto-created on first run
│ ├── access.log
│ └── error.log
├── logging-example/ ← this repo
├── docker-compose.prod.yml
└── docker-compose.logging.yml