mirror of
https://github.com/krislamo/graylog_demo
synced 2024-11-10 06:00:36 +00:00
Log fluentd containers to a file too
This commit is contained in:
parent
639c4357d0
commit
823e608de8
@ -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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user