linuxELK利用elasticproxy对elasticsearch进行二次排序
Posted jxd283465
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linuxELK利用elasticproxy对elasticsearch进行二次排序相关的知识,希望对你有一定的参考价值。
# 拉取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" ]
以上是关于linuxELK利用elasticproxy对elasticsearch进行二次排序的主要内容,如果未能解决你的问题,请参考以下文章