## Tutorial for Quickstart (mysql_replicator)
It is useful for these purpose.
* try it on this plugin quickly.
* replicate small record under a millons table.
**Note:**
On syncing 300 million rows table, it will consume around 800MB of memory with ruby 1.9.3 environment.
### configuration
`````
type copy
type stdout
type mysql_replicator_elasticsearch
# Set Elasticsearch connection.
host localhost
port 9200
# Set Elasticsearch index, type, and unique id (primary_key) from tag.
tag_format (?[^\.]+)\.(?[^\.]+)\.(?[^\.]+)\.(?[^\.]+)$
# Set frequency of sending bulk request to Elasticsearch node.
flush_interval 5s
# Queued chunks are flushed at shutdown process. (recommend for more stability)
# It's sample for td-agent. If you use Yamabiko, replace path from 'td-agent' to 'yamabiko'.
flush_at_shutdown yes
buffer_type file
buffer_path /var/log/td-agent/buffer/mysql_replicator_elasticsearch
`````