ELK docker 설치

# echo "Deploying Elasticsearch"
# docker network create elastic
# docker volume create es01
# docker pull [docker.elastic.co/elasticsearch/elasticsearch:7.15.0](<http://docker.elastic.co/elasticsearch/elasticsearch:7.15.0>)
# docker pull [docker.elastic.co/elasticsearch/elasticsearch:latest](<http://docker.elastic.co/elasticsearch/elasticsearch:latest>)
# docker search elasticsearch
# docker pull [docker.elastic.co/elasticsearch/elasticsearch:8.3.3](<http://docker.elastic.co/elasticsearch/elasticsearch:8.3.3>)
# docker run --name es01 --net elastic -p 9200:9200 -p 9300:9300 --volume es01:/data -e "discovery.type=single-node" [docker.elastic.co/elasticsearch/elasticsearch:8.3.3](<http://docker.elastic.co/elasticsearch/elasticsearch:8.3.3>)
# echo "Deploying Kibana"
# docker volume create kib01
# docker pull [docker.elastic.co/kibana/kibana:8.3.3](<http://docker.elastic.co/kibana/kibana:8.3.3>)
# docker run --name kib01 --net elastic -p 5601:5601 --volume kib01:/data -e
# docker run --name kib01 --net elastic -p 5601:5601 --volume kib01:/data -e "ELASTICSEARCH_HOSTS=https://es01:9200" [docker.elastic.co/kibana/kibana:8.3.3](<http://docker.elastic.co/kibana/kibana:8.3.3>)
# docker ps -a
# history

ELK Stack(Elasticsearch, Logstash, Kibana + Filebeat)를 구성

Elastic Stack이란 사용자가 서버로부터 원하는 모든 유형의 데이터를 수집하여 실시간으로 데이터 검색, 분석 및 시각화하여 업무에 활용할 수 있는 Elastic의 오픈소스 서비스이다.

ex) Elastic Stack = Elastic Search + Logstash + Kibana + Beats

→ influxDB + Grafana와도 비슷한 느낌의 서비스.

Elastic Search