Skip to content

Commit 80f4ffd

Browse files
committed
Add the stack file and config for fluentd
[refs #6c34382b0e70]
1 parent ee35bd1 commit 80f4ffd

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

swarm/logging/config/stdout.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<source>
2+
type forward
3+
port 24224
4+
bind 0.0.0.0
5+
</source>
6+
7+
<match **>
8+
type stdout
9+
</match>

swarm/logging/docker-stack.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "3.4"
2+
3+
services:
4+
fluentd:
5+
image: fluent/fluentd:v1.1.0
6+
ports:
7+
- 24224:24224
8+
configs:
9+
- source: fluentd_config
10+
target: /fluentd/etc/stdout.conf
11+
mode: 0444
12+
environment:
13+
- FLUENTD_CONF=stdout.conf
14+
15+
configs:
16+
fluentd_config:
17+
file: config/stdout.conf

0 commit comments

Comments
 (0)