通过logstash-input-jdbc将mysql数据导入es5.x

logstash-input-jdbc是logstash的一个jdbc插件

1.在es5.x中通过如下命令安装该插件

1
2
3
4
5
cd /Users/xy/Workspace/search/logstash/logstash-5.3.0
bin/logstash-plugin install logstash-input-jdbc
Validating logstash-input-jdbc
Installing logstash-input-jdbc
Installation successful

2.配置一个mysql计划任务的logstash config文件

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×