fluent-plugin-mysql-binlog, a plugin for Fluentd
MySQL Binlog input plugin for Fluentd event collector.
Installation
Add this line to your application's Gemfile:
gem 'fluent-plugin-mysql-binlog'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-mysql-binlog
Configuration
Config Sample
<source>
type mysql_binlog
host localhost # Optional (default: localhost)
port 3306 # Optional (default: 3306)
username msandbox # Optional (default: root)
password msadnbox # Optional (default nopassword)
tag input.mysql # Required
position_file position.log # Optional (default: position.log)
retry_wait 3 # Optional (default: 3)
retry_limit 100 # Optional (default: 100)
log_level debug # Optional (default: info)
listen_event row_event # Optional (default: Fluent::MysqlBinlogInput::BinlogUtil::EVENT_TYPES.join(','))
</source>
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request