ELK ์คํ ์ค์ต
docker-elk
์ฐ์ ๋ฐฉ๋ํ ์์ ์ค์ ์ ๊ฐ๋จํ๊ฒ ๋์์ฃผ๋ ๋ ํฌ์งํ ๋ฆฌ๊ฐ ์กด์ฌํ๋ค.
docker-elk ๋ ํฌ์งํ ๋ฆฌ ๋ฐ๋ก๊ฐ๊ธฐ
๋์ปค ์ด๋ฏธ์ง๋ ๊ณต์ ์ฌ์ดํธ๋ก๋ถํฐ ๊ฐ์ ธ์ ์ฌ์ฉํ๋ค๊ณ ํ๋ค.
๋น์ฐํ์ง๋ง ๋์ปค์ ๋์ปค์ปดํฌ์ฆ์ ์ค์น๊ฐ ํ์ํ๋ค.
์คํ ๋ฐฉ๋ฒ
readme์ ์๋๋๋ก ์คํํ ์ ์์ ๊ฒ ๊ฐ๋ค. ํ์ง๋ง ๋ช ๋ฒ ๋ฐ๋ณตํด๋ณด๋, ํ์ต๋ชฉ์ ์ผ ๋์๋ ๊ธด ๋น๋ฐ๋ฒํธ ์ฌ์ค์ ๋ฐฉ๋ฒ์ ๊ทธ๋๋ก ๋ฐ๋ผ๊ฐ ํ์ ์์ด .env
ํ์ผ์ ์์ ํด์ ๋ช ๊ฐ์ ์คํ
์ ๊ฑด๋๋ธ ์ ์๋ค.
.env
ํ์ผ ๋น๋ฐ๋ฒํธ ์์

์์๊ฐ์ด ์์ ํด ์ค ์ ์๋ค. ์ต์ 6์๋ฅผ ์๋ง์ถ๋ฉด setup์ ์คํจํ๋ ๋๋ฒ ์ผํ์ง ์์ ์ ์๊ฒ ํ์.
- setup
docker compose up setup
WARN[0000] mount of type `volume` should not define `bind` option
[+] Running 4/4
โ Network docker-elk_elk Created 0.0s
โ Volume "docker-elk_elasticsearch" Created 0.0s
โ Container docker-elk-elasticsearch-1 Created 0.1s
โ Container docker-elk-setup-1 Created 0.0s
Attaching to setup-1
setup-1 | [+] Waiting for availability of Elasticsearch. This can take several minutes.
setup-1 | โ ฟ Elasticsearch is running
setup-1 | [+] Waiting for initialization of built-in users
setup-1 | โ ฟ Built-in users were initialized
setup-1 | [+] Role 'filebeat_writer'
setup-1 | โ ฟ Creating/updating
setup-1 | [+] Role 'heartbeat_writer'
setup-1 | โ ฟ Creating/updating
setup-1 | [+] Role 'logstash_writer'
setup-1 | โ ฟ Creating/updating
setup-1 | [+] Role 'metricbeat_writer'
setup-1 | โ ฟ Creating/updating
setup-1 | [+] User 'metricbeat_internal'
setup-1 | โ ฟ No password defined, skipping
setup-1 | [+] User 'logstash_internal'
setup-1 | โ ฟ User does not exist, creating
setup-1 | [+] User 'filebeat_internal'
setup-1 | โ ฟ No password defined, skipping
setup-1 | [+] User 'kibana_system'
setup-1 | โ ฟ User exists, setting password
setup-1 | [+] User 'heartbeat_internal'
setup-1 | โ ฟ No password defined, skipping
setup-1 | [+] User 'monitoring_internal'
setup-1 | โ ฟ No password defined, skipping
setup-1 | [+] User 'beats_system'
setup-1 | โ ฟ No password defined, skipping
setup-1 exited with code 0
์๊ฐ์ด ์กฐ๊ธ ๊ฑธ๋ฆฌ๋, ํท๊ฐ๋ ค์ ์ข
๋ฃํ๋ ์ผ ์์ด code 0
๊น์ง ๋ณด๋๋ก ํ์.
- docker compose up -d
์์ ๋ช
๋ น์ด๋ฅผ ๊ทธ๋๋ก ์คํ์ํค์.
๊ทธ๋ผ id: elastic / pw: ์ง์ ํ ๋น๋ฐ๋ฒํธ
๋ฅผ ์
๋ ฅํด์ localhost:5601

์์ ๊ฐ์ kibana ํ๋ฉด์ ๋ณผ ์ ์๋ค.
TODO
-
- ํ์ด์ฌ ์์ผ. ๋น๋๊ธฐ vs ๋๊ธฐ ์ ํ๊ธฐ
-
- ํ๊ตญ ํฌ์ ์ฆ๊ถ ๊ฐ์คํ ์ด๋ค ๋ฐ์ดํฐ ์ธ์ง ์ ํ๊ธฐ. ๊ฐ๋ฐ ํด๋ณด๊ธฐ.
-
- ํ ์ด๋ฆ ์ ํ๊ธฐ