标签:man ecc sea cond container icp default file 镜像
# 拉取elasticproxy镜像
[root@localhost ELK-filebeat]# docker pull zhangyuming/elasticproxy
Using default tag: latest
latest: Pulling from zhangyuming/elasticproxy
cd784148e348: Pull complete
ee296a93e79d: Pull complete
Digest: sha256:c0c91a4ee3151f268006de76bc3e9915c2524248cb3049632b96c2e35204f346
Status: Downloaded newer image for zhangyuming/elasticproxy:latest
# 运行elasticproxy容器
[root@localhost ELK-filebeat]# docker run -d --rm -p 8899:8899 zhangyuming/elasticproxy elasticproxy -elastic_host elastichost:9200
c01ecc924982df8c8e622fa9588fbf672d2cdac85e14509004ef7bfefdbe9fe5
[root@localhost ELK-filebeat]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c01ecc924982 zhangyuming/elasticproxy "elasticproxy -elast…" 4 seconds ago Up 2 seconds 0.0.0.0:8899->8899/tcp boring_swanson
修改 /home/ELK-filebeat/docker-elk/kibana/config/kibana.yml
# 修改 kibana.yml ,将elasticsearch指向到elasticproxy的地址
[root@localhost config]# pwd
/home/ELK-filebeat/docker-elk/kibana/config
[root@localhost config]# vi kibana.yml
elasticsearch.hosts: [ "http://192.168.8.20:8899" ]
【linux】【ELK】利用elasticproxy对elasticsearch进行二次排序
标签:man ecc sea cond container icp default file 镜像
原文地址:https://www.cnblogs.com/jxd283465/p/11573788.html