下载地址:​​https://www.elastic.co/downloads/kibana​

[root@ansible ~]# tar xvf /tmp/kibana-7.15.1-linux-x86_64.tar.gz -C /
[root@ansible ~]# mv /kibana-7.15.1-linux-x86_64/ /kibana
[root@ansible ~]# chown -R elk.elk /kibana/

修改配置config/kibana.yml

elasticsearch.pingTimeout: 1500
elasticsearch.requestTimeout: 30000
server.port: 5601
elasticsearch.hosts: ["http://192.168.56.110:9200"]
server.host: "0.0.0.0"
kibana.index: ".kibana"

访问kibana:​​http://192.168.56.110:5601/app/home#/​

Centos 7.9下安装kibana_linux

通过配置logstash文件收集message日志

[elk@ansible ~]$ vi /logstash/config/system.conf
input {
file {
path => "/var/log/messages"
type => "system"
start_position => "beginning"
stat_interval => "2"
}
}
output {
elasticsearch {
hosts => ["192.168.56.110"]
index => "systemlog-%{+YYYY.MM.dd}"
}
}
[elk@ansible ~]$ /logstash/bin/logstash -f /logstash/config/system.conf -t

查看数据如下

Centos 7.9下安装kibana_elasticsearch_02

版权声明:本文为博主原创文章,未经博主允许不得转载。

ELK