/usr/local/logstash-6.4.3/config/目录中找到logstash.yml文件进行编辑
在文件后面添加2张表

##pipeline.id标识
- pipeline.id: table1
##path.config路径
  path.config: "/usr/local/sql/mysql.conf"
  
- pipeline.id: table2
  path.config: "/usr/local/sql/mysql_1.conf"

Logstash实现同步多张数据表1.png

启动logstash

./bin/logstash
最后修改:2019 年 10 月 22 日
如果觉得我的文章对你有用,请随意赞赏