码迷,mamicode.com
首页 > 编程语言 > 详细

【linux】【ELK】利用elasticproxy对elasticsearch进行二次排序

时间:2019-09-23 18:09:54      阅读:100      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!