Graylog安装(docker)
1.安装docker jdk1.8
2.下载docker镜像
docker pull mongo
docker pull docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
docker pull graylog/graylog:3.1
3.分开启动3个组件(推荐)
mongodb
docker run
--name mongo
-p 27017:27017
-v /etc/localtime:/etc/localtime:ro
-v mongo_data:/data/db
-d mongo:latest
elasticsearch
docker run
--name elasticsearch
-p 9200:9200 -p 9300:9300
-e "http.host=0.0.0.0"
-e "ES_JAVA_OPTS=-Xms512m -Xmx512m"
-e "discovery.type=single-node"
(设置跨域)
-e http.cors.allow-origin="*"
-e http.cors.enabled=true
-v /etc/localtime:/etc/localtime:ro
-v es_data:/usr/share/elasticsearch/data
-d docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
graylog
docker run
--link mongo
--link elasticsearch
--name graylog
-p 9000:9000
-p 12201:12201 -p 12201:12201/udp
-p 1514:1514 -p 1514:1514/udp -p 5044:5044
-e GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.15.6:9000/
-e GRAYLOG_ROOT_TIMEZONE=Asia/Shanghai
-e GRAYLOG_WEB_ENDPOINT_URI="http://192.168.15.6:9000/:9000/api"
-e GRAYLOG_PASSWORD_SECRET=somepasswordpepper
-e GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
-v /etc/localtime:/etc/localtime:ro
-v graylog_journal:/usr/share/graylog/data/journal
-d graylog/graylog:3.1