1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-11-09 21:50:35 +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> </parse>
</source> </source>
<match devel.*>
@type file
path /var/log/hostlogs/containers/${tag}
append true
<buffer tag>
timekey 5s
flush_mode immediate
</buffer>
</match>
<match **> <match **>
@type gelf @type gelf
host vagrant_graylog_1 host vagrant_graylog_1

View File

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