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:
parent
639c4357d0
commit
823e608de8
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user