blob: aebb0fcd1ac4c7a99cae7bdd14ce24bb27723c61 [file] [log] [blame]
Swann Croisetba4172b2017-03-16 10:43:48 +01001parameters:
2 _param:
3 kubernetes_syslog_pattern: "%syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%\\n"
4 kubernetes:
5 common:
6 logrotate: /var/log/kubernetes.log
7 heka:
8 log_collector:
9 input:
10 kubernetes:
11 engine: logstreamer
12 log_directory: "/var/log"
13 file_match: 'kubernetes\.log\.?(?P<Seq>\d*)$'
14 differentiator: ['kubernetes']
15 priority: ["^Seq"]
16 decoder: "kubernetes_decoder"
17 splitter: "TokenSplitter"
18 decoder:
19 kubernetes:
20 engine: sandbox
21 adjust_timezone: true
22 config:
23 syslog_pattern: ${_param:kubernetes_syslog_pattern}
24 rsyslog:
25 client:
26 output:
27 file:
28 /var/log/kubernetes.log:
29 sync: false
30 filter: "if $programname startswith 'kube' then"
31 stop_processing: true
32 template: ${_param:kubernetes_syslog_pattern}
33 skip_log_collector: true
34 owner: syslog
35 group: adm
36 createmode: "0640"
37 enabled: true
38