blob: 945ffce9e54e3d83ec5d4510daaf1e3b8ee12393 [file] [log] [blame]
khenaidoo1ee03e42018-02-20 12:45:41 -05001apiVersion: v1
2data:
3 fluentd.conf: |
khenaidoo1ee03e42018-02-20 12:45:41 -05004 <source>
5 @id fluentd-containers.log
6 @type tail
7 path /var/log/containers/*.log
8 exclude_path ["/var/log/containers/*kube-system*.log"]
9 pos_file /var/log/containers/ag-containers.log.pos
10 time_format %Y-%m-%dT%H:%M:%S.%NZ
11 tag voltha.*
12 log_level debug
13 format json
14 read_from_head true
15 </source>
16 <match **>
17 @type forward
18 heartbeat_type tcp
19
20 # primary host
21 <server>
22 host fluentdactv
23 port 24224
24 </server>
25 # use secondary host
26 <server>
27 host fluentdstby
28 port 24224
29 standby
30 </server>
31 # use longer flush_interval to reduce CPU usage.
32 # note that this is a trade-off against latency.
33 flush_interval 60s
34 </match>
35
36 fluentd-agg.conf: |
37 <source>
38 @type forward
39 port 24224
40 </source>
41 <match **>
42 @type file
43
44 path /fluentd/log/voltha
45 buffer_path /fluentd/log/*.log
46 append true
47 time_slice_wait 10m
48 time_format %Y%m%dT%H%M%S%z
49 time_slice_format %Y%m%d%H
50 </match>
51kind: ConfigMap
52metadata:
53 name: fluentd-config
54 namespace: voltha