ELK

安装logstash

下载并解压,然后进入目录,切换至超管 https://www.elastic.co/cn/downloads/logstash
shell> wget https://artifacts.elastic.co/downloads/logstash/logstash-7.3.0.tar.gz
shell> ./bin/logstash -e 'input { stdin { } } output { stdout {} }'

logstash测试

shell> cd logstash-7.3.0
shell> ./bin/logstash -e 'input { stdin { } } output { stdout {} }'

安装logstash-input-jdbc 插件

shell> ./bin/logstash-plugin  install logstash-input-jdbc

下载java mysql驱动

https://dev.mysql.com/downloads/connector/j/

安装kibana

https://www.elastic.co/cn/downloads/logstash
shell> wget https://artifacts.elastic.co/downloads/kibana/kibana-7.3.0-darwin-x86_64.tar.gz
shell> tar -zxvf kibana-7.3.0-darwin-x86_64.tar.gz
shell> cd kibana-7.3.0-darwin-x86_64
shell> ./bin/kibana

Leave Comment

电子邮件地址不会被公开。 必填项已用*标注