1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-09-19 21:50:36 +00:00
graylog_demo/td-agent.conf

63 lines
993 B
Plaintext
Raw Normal View History

<source>
@type forward
port 24224
</source>
<source>
@type syslog
port 5140
tag system
</source>
<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
tag httpd.access
<parse>
@type none
</parse>
</source>
2020-02-18 22:43:28 +00:00
<match devel.*>
@type copy
<store>
@type file
2020-03-04 16:35:39 +00:00
path /var/log/containers/${tag}
append true
<buffer tag>
2020-07-01 19:13:44 +00:00
@type file
path /var/log/containers/buffer
flush_interval 0s
</buffer>
2020-07-01 19:13:44 +00:00
<format>
@type single_value
message_key log
</format>
</store>
<store>
@type rewrite_tag_filter
<rule>
key container_name
pattern /\/(.+)/
tag ${tag}.$1
</rule>
</store>
2020-02-18 22:43:28 +00:00
</match>
<match **>
2020-07-24 15:56:06 +00:00
@type forward
transport tls
tls_cert_path /vagrant/tmp/ca_cert.pem
<server>
2020-07-24 15:56:06 +00:00
name example.com
host 172.28.128.30
port 2514
</server>
<buffer>
@type file
path /var/log/fluentd_buffer
flush_interval 0s
</buffer>
</match>