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-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>
|
2020-07-01 19:13:44 +00:00
|
|
|
@type file
|
|
|
|
path /var/log/containers/buffer
|
2020-07-01 18:32:02 +00:00
|
|
|
flush_interval 0s
|
2020-02-19 17:26:34 +00:00
|
|
|
</buffer>
|
2020-07-01 19:13:44 +00:00
|
|
|
<format>
|
|
|
|
@type single_value
|
|
|
|
message_key log
|
|
|
|
</format>
|
2020-02-19 17:26:34 +00:00
|
|
|
</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 **>
|
2020-03-23 20:14:43 +00:00
|
|
|
@type secure_forward
|
|
|
|
shared_key test
|
|
|
|
self_hostname 172.28.128.31
|
2020-07-01 19:45:44 +00:00
|
|
|
flush_interval 0s
|
|
|
|
num_threads 2
|
2020-03-23 20:14:43 +00:00
|
|
|
secure true
|
|
|
|
ca_cert_path /vagrant/tmp/ca_cert.pem
|
|
|
|
|
|
|
|
<server>
|
|
|
|
host 172.28.128.30
|
|
|
|
port 2514
|
|
|
|
</server>
|
2020-02-07 21:14:50 +00:00
|
|
|
</match>
|