Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####
- ## Output descriptions:
- ##
- # Treasure Data (http://www.treasure-data.com/) provides cloud based data
- # analytics platform, which easily stores and processes data from td-agent.
- # FREE plan is also provided.
- # @see http://docs.fluentd.org/articles/http-to-td
- #
- ## built-in TCP input
- ## @see http://docs.fluentd.org/articles/in_forward
- <source>
- @type forward
- </source>
- ## built-in UNIX socket input
- #<source>
- # type unix
- #</source>
- # HTTP input
- # POST http://localhost:8888/<tag>?json=<json>
- # POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
- # @see http://docs.fluentd.org/articles/in_http
- <source>
- @type http
- port 8888
- </source>
- ## live debugging agent
- <source>
- @type debug_agent
- bind localhost
- port 24230
- </source>
- <source>
- @type mysql_replicator
- host localhost
- username root
- password xxxxxxxx
- database livechat
- query SELECT * FROM chat_master;
- primary_key id
- interval 10s
- enable_delete yes
- tag replicator.chennai.chat_chennaibox.${event}.${primary_key}
- </source>
- #<match replicator.**>
- # @type stdout
- #</match>
- <match replicator.**>
- @type mysql_replicator_elasticsearch
- host localhost
- port 9200
- tag_format (?<index_name>[^\.]+)\.(?<type_name>[^\.]+)\.(?<event>[^\.]+)\.(?<primary_key>[^\.]+)$
- flush_interval 5s
- max_retry_wait 1800
- flush_at_shutdown yes
- buffer_type file
- buffer_path /var/log/td-agent/buffer/mysql_replicator_elasticsearch.*
- </match>
Add Comment
Please, Sign In to add comment