docker-compose 部署elk+解决时间不对导致kibana找不到logstash定义的index + docker-compose安装...
生活随笔
收集整理的這篇文章主要介紹了
docker-compose 部署elk+解决时间不对导致kibana找不到logstash定义的index + docker-compose安装...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.拉代碼
git clone https://github.com/deviantony/docker-elk.git2.docker-compose配置文件
[root@host7 docker-elk]# cat /root/docker-elk/docker-compose.yml|egrep -v '^$' version: '2' services:elasticsearch:build:context: elasticsearch/args:ELK_VERSION: 7.1.0volumes:- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro- /etc/localtime:/etc/localtimeports:- "9200:9200"- "9300:9300"environment:ES_JAVA_OPTS: "-Xmx1024m -Xms1024m"ELASTIC_PASSWORD: changemenetworks:- elklogstash:build:context: logstash/args:ELK_VERSION: 7.1.0volumes:- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro- ./logstash/pipeline:/usr/share/logstash/pipeline:ro- /var/log:/var/log- /etc/localtime:/etc/localtimeports:- "5000:5000"- "9600:9600"environment:LS_JAVA_OPTS: "-Xmx1024m -Xms1024m"networks:- elkdepends_on:- elasticsearchkibana:build:context: kibana/args:ELK_VERSION: 7.1.0volumes:- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro- /etc/localtime:/etc/localtimeports:- "5601:5601"networks:- elkdepends_on:- elasticsearch networks:elk:driver: bridge3.修改版本號
sed -i '/:7.2.0/ s#:7.2.0#:7.1.0#' ./*.yml
?
轉載于:https://www.cnblogs.com/hixiaowei/p/11139403.html
總結
以上是生活随笔為你收集整理的docker-compose 部署elk+解决时间不对导致kibana找不到logstash定义的index + docker-compose安装...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MVC案例——模糊查询
- 下一篇: MSSql2005: Cube 和 Ro