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

50 lines
715 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
pos_file /var/log/httpd/access_log.pos
tag httpd.access
<parse>
@type apache2
</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>
timekey 5s
flush_mode immediate
</buffer>
</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 **>
@type gelf
2020-02-27 18:45:49 +00:00
protocol tcp
host localhost
port 12201
flush_interval 5s
</match>