{"id":24784476,"url":"https://github.com/miintto/elk-stack","last_synced_at":"2026-04-30T17:32:00.373Z","repository":{"id":167871470,"uuid":"437484999","full_name":"miintto/elk-stack","owner":"miintto","description":"Monitoring system with ELK stack for Web Application","archived":false,"fork":false,"pushed_at":"2022-08-21T10:57:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T07:55:43.843Z","etag":null,"topics":["docker-compose","elasticsearch","elk-stack","kibana","logstash"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miintto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-12T07:52:00.000Z","updated_at":"2022-02-05T10:01:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"b531213f-ba20-412c-8f30-a1673916126d","html_url":"https://github.com/miintto/elk-stack","commit_stats":null,"previous_names":["miintto/elk-stack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miintto/elk-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miintto%2Felk-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miintto%2Felk-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miintto%2Felk-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miintto%2Felk-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miintto","download_url":"https://codeload.github.com/miintto/elk-stack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miintto%2Felk-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","elasticsearch","elk-stack","kibana","logstash"],"created_at":"2025-01-29T13:14:53.135Z","updated_at":"2026-04-30T17:32:00.368Z","avatar_url":"https://github.com/miintto.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://user-images.githubusercontent.com/37063580/152669957-472c2ade-1b45-4b0a-9160-b79439466eb7.png\" width=\"120\"/\u003e\n\n# ELK Stack\n\nELK 스택을 이용한 웹 어플리케이션 모니터링 시스템\n\n- **Elasticsearch**: 검색 엔진 및 NoSQL 데이터베이스\n- **Logstash**: 로그 데이터 파이프라인\n- **Kibana**: 데이터 시각화 인터페이스\n\n\n# 1. Architecture\n\n\u003cimg src=\"https://user-images.githubusercontent.com/37063580/152670118-3dd3b27d-e9ca-4a01-9988-c1567bab6a85.png\"/\u003e\n\n## 1.1 [Web Application Server](http://kakao.miintto.com)\n  - Django 프레임워크 사용\n  - Filebeat 사용하여 Logstash로 로그 데이터 전송\n\n## 1.2 RDB\n  - PostgreSQL 12.7 (1GB RAM / 1 vCPU / 40GB SSD)\n\n## 1.3 ELK Cluster\n  - Docker-Compose 로 ELK 스택을 한 인스턴스에 구성\n    - 각 컨테이너마다 메모리 1GB씩 할당\n\n\n# 2. Structure\n\n~~~bash\n$\u003e git clone https://github.com/miintto/elk-stack.git\n$\u003e cd elk-stack\n$\u003e tree\n.\n├── docker-compose.yml  # Service 정의\n├── elasticsearch       # Elastirsearch\n│   ├── Dockerfile\n│   └── config\n│       └── elasticsearch.yml\n├── kibana              # Kibana\n│   ├── Dockerfile\n│   └── config\n│       └── kibana.yml\n└── logstash            # Logstash\n    ├── Dockerfile\n    ├── config\n    │   └── logstash.yml\n    └── pipeline\n        └── logstash.conf\n~~~\n\n\n# 3. Quick Start\n\n## 3.1 Requirement\n  - Docker: 20.10.7\n  - Docker-Compose: 2.2.3\n\n## 3.1 Set Env\n\n`.env` 파일을 생성하여 설정할 환경 변수를 입력합니다.\n\n~~~bash\n$\u003e cp .env.example .env\n$\u003e vim .env\n\nELK_VERSION=1.7.1\n\nELASTIC_USERNAME=elastic\nELASTIC_PASSWORD=....\n~~~\n\n## 3.2 Check config files\n\n설정한 환경 변수들이 제대로 세팅되었는지 확인합니다.\n\n~~~bash\n$\u003e docker-compose config\n\nnetworks:\n  elastic:\n    driver: bridge\nservices:\n  elasticsearch:\n    build:\n...\n~~~\n\n## 3.3 Run\n\n~~~bash\n$\u003e docker-compose up -d\n~~~\n\n## 3.4 Check running processes\n\n~~~bash\n$\u003e docker ps\n\nCONTAINER ID   IMAGE                     COMMAND                  CREATED          ...\ncde0ed296b44   elk-stack_logstash        \"/usr/local/bin/dock…\"   30 minutes ago   ...\nd938664e87bc   elk-stack_kibana          \"/bin/tini -- /usr/l…\"   30 minutes ago   ...\n285ac83fbe91   elk-stack_elasticsearch   \"/bin/tini -- /usr/l…\"   30 minutes ago   ...\n~~~\n\n## 3.5 Access to Kibana\n\nhttp://\u003c서버 IP 혹은 host\u003e:5601 로 접속하여 설정한 아이디와 비밀번호로 로그인할 수 있습니다.\n\n\u003cimg width=\"800\" src=\"https://user-images.githubusercontent.com/37063580/185786693-b15f2025-5f54-49f1-86a3-0daa74c54eaa.png\"\u003e\n\n\n# 4. Extra settings\n\n## 4.1 Filebeat agent\n\nLogstash 서버로 로그를 보내주는 filebeat는 간단히 다음과 같이 구성할 수 있습니다.\n\n```yml\n# filebeat.yml\nfilebeat.inputs:\n  - type: filestream\n    id: django-was-log\n    paths:\n      - /project/log/path/*.log\noutput.logstash:\n  hosts: [ '${LOGSTASH_HOST}:5044' ]\n```\n\n[Filebeat 더 알아보기](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-howto-filebeat.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiintto%2Felk-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiintto%2Felk-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiintto%2Felk-stack/lists"}