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

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

Issue 29339248: Issue 3305 - Introduce adblockplus::log::tracker and ::forwarder (Closed)
Patch Set: Issue 3305 - Fix typos in documentation Created April 7, 2016, 7:29 a.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
Index: modules/adblockplus/templates/log/fluentd/forwarder.conf.erb
diff --git a/modules/adblockplus/templates/log/fluentd/forwarder.conf.erb b/modules/adblockplus/templates/log/fluentd/forwarder.conf.erb
new file mode 100644
index 0000000000000000000000000000000000000000..8531f9afd87d137a348e087c551b170d9da8818e
--- /dev/null
+++ b/modules/adblockplus/templates/log/fluentd/forwarder.conf.erb
@@ -0,0 +1,30 @@
+# Puppet: Class['<%= @title %>']
+<label <%= scope.lookupvar('adblockplus::log::name') %>>
+ <match **>
+
+ # http://docs.fluentd.org/articles/out_forward
+ @type forward
+
+ <server>
+ name adblockplus-log-master
+ host <%= @host %>
+ port <%= @port %>
+ </server>
+
+ # http://docs.fluentd.org/articles/buf_file
+ buffer_type file
+ buffer_path /var/run/<%= scope.lookupvar('adblockplus::log::agent') %>/forwarder.*
+
+ # http://docs.fluentd.org/articles/out_file
+ <secondary>
+ @type file
+ append
+ flush_at_shutdown
+ path /var/log/<%= scope.lookupvar('adblockplus::log::agent') %>/rejected
+ time_slice_format %Y%m%d
+ utc
+ </secondary>
+
+ </match>
+</label>
+
« no previous file with comments | « modules/adblockplus/templates/log/fluentd/default.conf.erb ('k') | modules/adblockplus/templates/log/fluentd/master.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld