blob: 80707d39302bf3ded755c52e3c301eed49ef3be7 [file] [log] [blame]
Bartosz Kupidurae8496962017-11-07 13:49:25 +01001parameters:
2 _param:
3 fluentd_default_output_file: /var/log/td-agent/default-all.log
4 fluentd:
Bartosz Kupidurad7b9c2e2017-11-22 10:08:36 +01005 agent:
6 config:
Bartosz Kupidurad7b9c2e2017-11-22 10:08:36 +01007 label:
8 default_output:
9 filter:
10 add_general_fields:
11 tag: "**"
12 type: record_transformer
13 enable_ruby: true
14 record:
15 - name: Type
16 value: log
17 - name: environment_label
18 value: ${_param:cluster_domain}
19 - name: Hostname
Bartosz Kupiduracd8f6482017-11-23 12:42:29 +010020 value: ${fluentd:dollar}{ hostname }
Bartosz Kupidurad7b9c2e2017-11-22 10:08:36 +010021 - name: Timestamp
Bartosz Kupiduracd8f6482017-11-23 12:42:29 +010022 value: ${fluentd:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
Bartosz Kupidurad7b9c2e2017-11-22 10:08:36 +010023 match:
24 everything:
25 tag: '**'
26 type: 'file'
27 path: ${_param:fluentd_default_output_file}