EFK Stack容器部署

基礎環境

安裝dockerhtml

# curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
# yum install docker-compose
# mkdir -p /etc/docker
# tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://ar4vj99q.mirror.aliyuncs.com"]
}
EOF
# systemctl daemon-reload
# systemctl restart docker

配置docker-compose.ymlpython

# git clone https://github.com/kzk/docker-compose-efk.git

構建EFK環境git

# yum install python-pip
# pip install --upgrade pip
# pip install docker-compose
# cd docker-compose-efk/
# vim fluentd/conf/fluent.conf
<source>
  @type syslog
  port 5140
  bind 0.0.0.0
  tag system
</source>
# docker-compose up

驗證安裝github

# curl http://localhost:80/
<html><body><h1>It works!</h1></body></html>

配置Kibanaweb

### web登入http://192.168.200.15:5601

參考文檔

Docker Logging via EFK (Elasticsearch + Fluentd + Kibana) Stack with Docker Composedocker

相關文章
相關標籤/搜索