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