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

Log fluentd containers to a file too

This commit is contained in:
Kris Lamoureux 2020-02-18 17:43:28 -05:00
parent 639c4357d0
commit 823e608de8
Signed by: kris
GPG Key ID: A30022791E1719A4
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,16 @@
</parse>
</source>
<match devel.*>
@type file
path /var/log/hostlogs/containers/${tag}
append true
<buffer tag>
timekey 5s
flush_mode immediate
</buffer>
</match>
<match **>
@type gelf
host vagrant_graylog_1

View File

@ -35,6 +35,7 @@ services:
driver: "fluentd"
options:
fluentd-address: "tcp://127.0.0.1:24224"
tag: devel.kris
# Messages are buffered until the connection is established
#fluentd-async-connect: "true"