Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/templates/log/fluentd/master.conf.erb

Issue 29338680: Issue 3825 - Replace Logstash setup with Fluentd (Closed)
Patch Set: Created March 18, 2016, 6:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/log/uplink.pp ('k') | modules/adblockplus/templates/log/rotation.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/templates/log/fluentd/master.conf.erb
diff --git a/modules/adblockplus/templates/log/fluentd/master.conf.erb b/modules/adblockplus/templates/log/fluentd/master.conf.erb
new file mode 100644
index 0000000000000000000000000000000000000000..c0be20b06885e7285afe992190a8955b64cd3085
--- /dev/null
+++ b/modules/adblockplus/templates/log/fluentd/master.conf.erb
@@ -0,0 +1,107 @@
+####
+## 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
+#
+# This section matches events whose tag is td.DATABASE.TABLE
+<match td.*.*>
+ type tdlog
+ apikey YOUR_API_KEY
+
+ auto_create_table
+ buffer_type file
+ buffer_path /var/log/td-agent/buffer/td
+
+ <secondary>
+ type file
+ path /var/log/td-agent/failed_records
+ </secondary>
+</match>
+
+## match tag=debug.** and dump to console
+<match debug.**>
+ type stdout
+</match>
+
+####
+## Source descriptions:
+##
+
+## 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 127.0.0.1
+ port 24230
+</source>
+
+####
+## Examples:
+##
+
+## File input
+## read apache logs continuously and tags td.apache.access
+#<source>
+# type tail
+# format apache
+# path /var/log/httpd-access.log
+# tag td.apache.access
+#</source>
+
+## File output
+## match tag=local.** and write to file
+#<match local.**>
+# type file
+# path /var/log/td-agent/access
+#</match>
+
+## Forwarding
+## match tag=system.** and forward to another td-agent server
+#<match system.**>
+# type forward
+# host 192.168.0.11
+# # secondary host is optional
+# <secondary>
+# host 192.168.0.12
+# </secondary>
+#</match>
+
+## Multiple output
+## match tag=td.*.* and output to Treasure Data AND file
+#<match td.*.*>
+# type copy
+# <store>
+# type tdlog
+# apikey API_KEY
+# auto_create_table
+# buffer_type file
+# buffer_path /var/log/td-agent/buffer/td
+# </store>
+# <store>
+# type file
+# path /var/log/td-agent/td-%Y-%m-%d/%H.log
+# </store>
+#</match>
« no previous file with comments | « modules/adblockplus/manifests/log/uplink.pp ('k') | modules/adblockplus/templates/log/rotation.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld