ELK实时日志分析平台(elk+kafka+metricbeat)-kibana部署(六)
-
解压(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
-
修改配置文件:
#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 -
启动:
-
以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
-
创建test索引:
curl -XPUT'192.168.30.121:9200/test?pretty'
-
导入模板到指定索引:
./scripts/import_dashboards -es http://192.168.30.121:9200 -k test
-
在kibana中关联索引: