zoukankan      html  css  js  c++  java
  • 【Linux】【ELK】利用elasticproxy对elasticsearch进行二次排序

    做过elk的人应该了解kibana排序至支持到秒级别,但同一秒内出现多个日志的时候那么kibana展示的日志就会混轮,加上该代理可以解决该问题

    # 拉取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 -p 8899:8899 --name elasticproxy zhangyuming/elasticproxy elasticproxy -elastic_host 192.168.8.20: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 elasticproxy

    修改     /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" ]
  • 相关阅读:
    解决shiro多次从redis读取session的问题
    软件测试其他方法
    异常HTTP Status 500
    支付
    java面试
    SQL入门
    软件测试理论基础
    软件测试学习第一章
    Linux在终端命令行模式下智能补全功能以及组合键
    Linux安装
  • 原文地址:https://www.cnblogs.com/jxd283465/p/11573788.html
Copyright © 2011-2022 走看看