I have mysql binlog enabled in row format. I am using mysqlbinlog to parse binlog file. I am using this command:
mysqlbinlog --base64-output=decode-rows -vv ./mysql-bin.000004
This command returns sql statements that I have to parse to generate json.
I used pymysqlreplication module in python but it doesn't read from binlog file. It requires real-time mysql replication connection. I can't access archived binlog files using master server.
Is there any way to parse archived binlog file and generate json?