宋子宪博客

Logstash实现同步多张数据表

/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

./bin/logstash

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »