当前位置:Gxlcms > 数据库问题 > Logstash配置同步mysql到es配置

Logstash配置同步mysql到es配置

时间:2021-07-01 10:21:17 帮助过:3人阅读

 

将配置文件丢到config下: 名字为mysql.conf,随便起的

启动: ./bin/logstash ./config/mysql.conf

注意:因为我用的是mysql的最新的驱动8.多的版本,所以配置数据库的url时候一定要把serverTimezone=UTC天加上!

同时mysql数据库:

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘root‘ with grant option;

FLUSH PRIVILEGES;

 

很慢的,启动过程盯着日志:

 技术图片

kinbana:

技术图片

 

Logstash配置同步mysql到es配置

标签:两种   java   param   同步   sch   xxxx   time   htm   没有   

人气教程排行