RajkumarRK

Untitled

Jun 14th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. ####
  2. ## Output descriptions:
  3. ##
  4.  
  5. # Treasure Data (http://www.treasure-data.com/) provides cloud based data
  6. # analytics platform, which easily stores and processes data from td-agent.
  7. # FREE plan is also provided.
  8. # @see http://docs.fluentd.org/articles/http-to-td
  9. #
  10.  
  11. ## built-in TCP input
  12. ## @see http://docs.fluentd.org/articles/in_forward
  13. <source>
  14. @type forward
  15. </source>
  16.  
  17. ## built-in UNIX socket input
  18. #<source>
  19. # type unix
  20. #</source>
  21.  
  22. # HTTP input
  23. # POST http://localhost:8888/<tag>?json=<json>
  24. # POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
  25. # @see http://docs.fluentd.org/articles/in_http
  26. <source>
  27. @type http
  28. port 8888
  29. </source>
  30.  
  31. ## live debugging agent
  32. <source>
  33. @type debug_agent
  34. bind localhost
  35. port 24230
  36. </source>
  37.  
  38. <source>
  39. @type mysql_replicator
  40. host localhost
  41. username root
  42. password xxxxxxxx
  43. database livechat
  44. query SELECT * FROM chat_master;
  45. primary_key id
  46. interval 10s
  47. enable_delete yes
  48. tag replicator.chennai.chat_chennaibox.${event}.${primary_key}
  49. </source>
  50. #<match replicator.**>
  51. # @type stdout
  52. #</match>
  53.  
  54. <match replicator.**>
  55. @type mysql_replicator_elasticsearch
  56. host localhost
  57. port 9200
  58. tag_format (?<index_name>[^\.]+)\.(?<type_name>[^\.]+)\.(?<event>[^\.]+)\.(?<primary_key>[^\.]+)$
  59. flush_interval 5s
  60. max_retry_wait 1800
  61. flush_at_shutdown yes
  62. buffer_type file
  63. buffer_path /var/log/td-agent/buffer/mysql_replicator_elasticsearch.*
  64. </match>
Add Comment
Please, Sign In to add comment