blob: 5e0050d563bdfd8be7d75bd1a8f77dd14b8a4a55 [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:
5 config:
6 dollar: '$'
7 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
20 value: ${fluentd:config:dollar}{ hostname }
21 - name: Timestamp
22 value: ${fluentd:config:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
23 match:
24 everything:
25 tag: '**'
26 type: 'file'
27 path: ${_param:fluentd_default_output_file}