2020-02-07 21:14:50 +00:00
|
|
|
<source>
|
|
|
|
@type forward
|
|
|
|
port 24224
|
|
|
|
</source>
|
|
|
|
|
2020-02-10 21:17:24 +00:00
|
|
|
<source>
|
|
|
|
@type syslog
|
|
|
|
port 5140
|
|
|
|
tag system
|
|
|
|
</source>
|
|
|
|
|
2020-02-11 21:25:20 +00:00
|
|
|
<source>
|
|
|
|
@type tail
|
2020-03-04 16:35:39 +00:00
|
|
|
path /var/log/httpd/access_log
|
2020-03-05 16:03:52 +00:00
|
|
|
pos_file /var/log/td-agent/access_log.pos
|
2020-02-11 21:25:20 +00:00
|
|
|
tag httpd.access
|
|
|
|
<parse>
|
2020-03-20 14:44:38 +00:00
|
|
|
@type none
|
2020-02-11 21:25:20 +00:00
|
|
|
</parse>
|
|
|
|
</source>
|
|
|
|
|
2020-03-20 14:44:38 +00:00
|
|
|
<filter httpd.access>
|
|
|
|
@type parser
|
|
|
|
key_name message
|
|
|
|
reserve_data true
|
|
|
|
<parse>
|
|
|
|
@type apache2
|
|
|
|
</parse>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
|
2020-02-18 22:43:28 +00:00
|
|
|
<match devel.*>
|
2020-02-19 17:26:34 +00:00
|
|
|
@type copy
|
|
|
|
<store>
|
|
|
|
@type file
|
2020-03-04 16:35:39 +00:00
|
|
|
path /var/log/containers/${tag}
|
2020-02-19 17:26:34 +00:00
|
|
|
append true
|
|
|
|
<buffer tag>
|
|
|
|
timekey 5s
|
|
|
|
flush_mode immediate
|
|
|
|
</buffer>
|
|
|
|
</store>
|
|
|
|
<store>
|
|
|
|
@type rewrite_tag_filter
|
|
|
|
<rule>
|
|
|
|
key container_name
|
2020-02-19 17:39:43 +00:00
|
|
|
pattern /\/(.+)/
|
2020-02-19 17:26:34 +00:00
|
|
|
tag ${tag}.$1
|
|
|
|
</rule>
|
|
|
|
</store>
|
2020-02-18 22:43:28 +00:00
|
|
|
</match>
|
|
|
|
|
2020-02-07 21:14:50 +00:00
|
|
|
<match **>
|
|
|
|
@type gelf
|
2020-02-27 18:45:49 +00:00
|
|
|
protocol tcp
|
2020-03-04 21:09:50 +00:00
|
|
|
host localhost
|
2020-02-07 21:14:50 +00:00
|
|
|
port 12201
|
|
|
|
flush_interval 5s
|
|
|
|
</match>
|