ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)

  1. 云栖社区>
  2. 博客>
  3. 正文

ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)

技术小阿哥 2017-11-27 17:19:00 浏览1276
展开阅读全文
  1. 解压(192.168.30.121上执行):

    tar -zxf /opt/soft/newelk/kibana-5.5.1-linux-x86_64.tar.gz -C ./

    mv kibana-5.5.1-linux-x86_64 kibana

  2. 修改配置文件:

    #cat>kibana/config/kibana.yml<<EOF
    server.port: 5601
    server.host: "192.168.30.121"
    server.basePath: ""
    server.maxPayloadBytes: 1048576
    elasticsearch.url: "http://192.168.30.121:9200"
    elasticsearch.preserveHost: true
    kibana.index: ".kibana"
    kibana.defaultAppId: "discover"
    elasticsearch.username: "elastic"
    elasticsearch.password: "changeme"
    elasticsearch.pingTimeout: 1500
    elasticsearch.requestTimeout: 30000
    elasticsearch.shardTimeout: 0
    elasticsearch.startupTimeout: 5000
    pid.file: /var/run/kibana.pid
    logging.dest: stdout
    logging.silent: false
    logging.quiet: false
    logging.verbose: false
    ops.interval: 5000
    i18n.defaultLocale: "en"
    EOF

  3. 启动:

    wKiom1nJs5ixigQHAAA19kwbIG0475.png

    wKioL1nJs2aB-z3ZAADr6dfBlI0787.png

  4. 以metricbeat为例导入模板:

    tar -zxf/opt/soft/newelk/metricbeat-5.5.1-linux-x86_64.tar.gz -C /opt/soft/newelk

    cd/opt/soft/newelk/metricbeat-5.5.1-linux-x86_64

  5. 创建test索引:

    curl -XPUT'192.168.30.121:9200/test?pretty'

  6. 导入模板到指定索引:

    ./scripts/import_dashboards  -es http://192.168.30.121:9200 -k test

  7. 在kibana中关联索引:

    wKiom1nJtDXxIxzNAADy_dYvmQ4209.png

    wKioL1nJtAPyVK9LAAGR4NMV_ew440.png

    wKioL1nJtA_gOw8gAAEj2Lc6-pM136.png


本文转自 zhuxtqw 51CTO博客,原文链接:http://blog.51cto.com/1054054/1968690,如需转载请自行联系原作者

网友评论

登录后评论
0/500
评论
技术小阿哥
+ 关注