aboutsummaryrefslogtreecommitdiff
path: root/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/rubygem-fluentd/files/patch-fluent.conf.sample')
-rw-r--r--sysutils/rubygem-fluentd/files/patch-fluent.conf.sample75
1 files changed, 57 insertions, 18 deletions
diff --git a/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample b/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample
index 981709385d08..d8840be888f1 100644
--- a/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample
+++ b/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample
@@ -1,65 +1,94 @@
---- fluent.conf.sample.orig 2017-01-06 21:42:28 UTC
-+++ fluent.conf.sample
-@@ -0,0 +1,100 @@
+--- fluent.conf.sample.orig 2020-08-24 22:30:41.549691000 +0300
++++ fluent.conf.sample 2020-08-24 22:21:09.000000000 +0300
+@@ -0,0 +1,139 @@
++# In v1 configuration, type and id are @ prefix parameters.
++# @type and @id are recommended. type and id are still available for backward compatibility
+
+## built-in TCP input
+## $ echo <json> | fluent-cat <tag>
+<source>
-+ type forward
++ @type forward
++ @id forward_input
+</source>
+
+## built-in UNIX socket input
+#<source>
-+# type unix
++# @type unix
+#</source>
+
+# HTTP input
+# http://localhost:8888/<tag>?json=<json>
+<source>
-+ type http
++ @type http
++ @id http_input
++
+ port 8888
+</source>
+
+## File input
+## read apache logs with tag=apache.access
+#<source>
-+# type tail
++# @type tail
+# format apache
+# path /var/log/httpd-access.log
+# tag apache.access
+#</source>
+
++## Mutating event filter
++## Add hostname and tag fields to apache.access tag events
++#<filter apache.access>
++# @type record_transformer
++# <record>
++# hostname ${hostname}
++# tag ${tag}
++# </record>
++#</filter>
++
++## Selecting event filter
++## Remove unnecessary events from apache prefixed tag events
++#<filter apache.**>
++# @type grep
++# include1 method GET # pass only GET in 'method' field
++# exclude1 message debug # remove debug event
++#</filter>
++
+# Listen HTTP for monitoring
+# http://localhost:24220/api/plugins
+# http://localhost:24220/api/plugins?type=TYPE
+# http://localhost:24220/api/plugins?tag=MYTAG
+<source>
-+ type monitor_agent
++ @type monitor_agent
++ @id monitor_agent_input
++
+ port 24220
+</source>
+
+# Listen DRb for debug
+<source>
-+ type debug_agent
++ @type debug_agent
++ @id debug_agent_input
++
+ bind 127.0.0.1
+ port 24230
+</source>
+
-+
+## match tag=apache.access and write to file
+#<match apache.access>
-+# type file
++# @type file
+# path /var/log/fluent/access
+#</match>
+
+## match tag=debug.** and dump to console
+<match debug.**>
-+ type stdout
++ @type stdout
++ @id stdout_output
+</match>
+
+# match tag=system.** and forward to another fluent server
+<match system.**>
-+ type forward
++ @type forward
++ @id forward_output
++
+ <server>
+ host 192.168.0.11
+ </server>
@@ -72,9 +101,9 @@
+
+## match tag=myapp.** and forward and write to file
+#<match myapp.**>
-+# type copy
++# @type copy
+# <store>
-+# type forward
++# @type forward
+# buffer_type file
+# buffer_path /var/log/fluent/myapp-forward
+# retry_limit 50
@@ -84,20 +113,30 @@
+# </server>
+# </store>
+# <store>
-+# type file
++# @type file
+# path /var/log/fluent/myapp
+# </store>
+#</match>
+
+## match fluent's internal events
+#<match fluent.**>
-+# type null
++# @type null
+#</match>
+
+## match not matched logs and write to file
+#<match **>
-+# type file
++# @type file
+# path /var/log/fluent/else
+# compress gz
+#</match>
+
++## Label: For handling complex event routing
++#<label @STAGING>
++# <match system.**>
++# @type forward
++# @id staging_forward_output
++# <server>
++# host 192.168.0.101
++# </server>
++# </match>
++#</label>