RajkumarRK

td-agent.conf

Jul 14th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 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. # This section matches events whose tag is td.DATABASE.TABLE
  11. <match td.*.*>
  12. type tdlog
  13. apikey YOUR_API_KEY
  14.  
  15. auto_create_table
  16. buffer_type file
  17. buffer_path /var/log/td-agent/buffer/td
  18.  
  19. <secondary>
  20. type file
  21. path /var/log/td-agent/failed_records
  22. </secondary>
  23. </match>
  24.  
  25. ## match tag=debug.** and dump to console
  26. <match debug.**>
  27. type stdout
  28. </match>
  29.  
  30. ####
  31. ## Source descriptions:
  32. ##
  33.  
  34. ## built-in TCP input
  35. ## @see http://docs.fluentd.org/articles/in_forward
  36. <source>
  37. type forward
  38. </source>
  39.  
  40. ## built-in UNIX socket input
  41. #<source>
  42. # type unix
  43. #</source>
  44.  
  45. # HTTP input
  46. # POST http://localhost:8888/<tag>?json=<json>
  47. # POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
  48. # @see http://docs.fluentd.org/articles/in_http
  49. <source>
  50. type http
  51. port 8888
  52. </source>
  53.  
  54. ## live debugging agent
  55. <source>
  56. type debug_agent
  57. bind 127.0.0.1
  58. port 24230
  59. </source>
  60.  
  61. ####
  62. ## Examples:
  63. ##
  64. ## File input
  65. ## read apache logs continuously and tags td.apache.access
  66. #<source>
  67. # type tail
  68. # format apache
  69. # path /var/log/httpdaccess.log
  70. # tag td.apache.access
  71. #</source>
  72.  
  73. ## File output
  74. ## match tag=local.** and write to file
  75. #<match local.**>
  76. # type file
  77. # path /var/log/td-agent/apache.log
  78. #</match>
  79.  
  80. ## Forwarding
  81. ## match tag=system.** and forward to another td-agent server
  82. #<match system.**>
  83. # type forward
  84. # host 192.168.0.11
  85. # # secondary host is optional
  86. # <secondary>
  87. # host 192.168.0.12
  88. # </secondary>
  89. #</match>
  90.  
  91. ## Multiple output
  92. ## match tag=td.*.* and output to Treasure Data AND file
  93. #<match td.*.*>
  94. # type copy
  95. # <store>
  96. # type tdlog
  97. # apikey API_KEY
  98. # auto_create_table
  99. # buffer_type file
  100. # buffer_path /var/log/td-agent/buffer/td
  101. # </store>
  102. # <store>
  103. # type file
  104. # path /var/log/td-agent/td-%Y-%m-%d/%H.log
  105. # </store>
  106. #</match>
  107. <source>
  108. type tail
  109. path /var/log/pfsense/admin.log
  110. pos_file /var/log/td-agent/admin.log.pos
  111. tag pfsense_log
  112. format pf_admin_log
  113. </source>
  114. <source>
  115. type tail
  116. path /var/log/pfsense/check_reload_status.log
  117. pos_file /var/log/td-agent/check_reload_status.log.pos
  118. tag pfsense_log
  119. format pf_check_reload_status
  120. </source>
  121. <source>
  122. type tail
  123. path /var/log/pfsense/dnsmasq.log
  124. pos_file /var/log/td-agent/dnsmasq.log.pos
  125. tag pfsense_log
  126. format pf_dmesg
  127. </source>
  128. <source>
  129. type tail
  130. path /var/log/pfsense/filterlog.log
  131. pos_file /var/log/td-agent/filterlog.log.pos
  132. tag pfsense_log
  133. format pf_filterlog_1
  134. </source>
  135. <source>
  136. type tail
  137. path /var/log/pfsense/filterlog.log
  138. pos_file /var/log/td-agent/filterlog.log.pos
  139. tag pfsense_log
  140. format pf_filterlog_2
  141. </source>
  142. <source>
  143. type tail
  144. path /var/log/pfsense/kernel.log
  145. pos_file /var/log/td-agent/kernel.log.pos
  146. tag pfsense_log
  147. format pf_kernal
  148. </source>
  149. <source>
  150. type tail
  151. path /var/log/pfsense/nginx.log
  152. pos_file /var/log/td-agent/nginx.log.pos
  153. tag pfsense_log
  154. format pf_nginx
  155. </source>
  156. <source>
  157. type tail
  158. path /var/log/pfsense/openvpn.log
  159. pos_file /var/log/td-agent/openvpn.log.pos
  160. tag pfsense_log
  161. format pf_openvpn
  162. </source>
  163. <source>
  164. type tail
  165. path /var/log/pfsense/php-fpm.log
  166. pos_file /var/log/td-agent/php-fpm.log.pos
  167. tag pfsense_log
  168. format pf_php_fpm
  169. </source>
  170. <source>
  171. type tail
  172. path /var/log/pfsense/syslogd.log
  173. pos_file /var/log/td-agent/syslogd.log.pos
  174. tag pfsense_log
  175. format pf_syslogd
  176. </source>
  177. <source>
  178. type tail
  179. path /var/log/pfsense/xinetd.log
  180. pos_file /var/log/td-agent/xinetd.log.pos
  181. tag pfsense_log
  182. format pf_xinetd
  183. </source>
  184. <match pfsense_log>
  185. type stdout
  186. </match>
  187.  
  188. <match pfsense_log>
  189. type elasticsearch
  190. logstash_format true
  191. host 10.1.2.80
  192. port 9200
  193. </match>
Add Comment
Please, Sign In to add comment