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<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

    ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)_第1张图片

  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中关联索引:

    ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)_第2张图片

    ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)_第3张图片

    ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)_第4张图片