blob: c67e1e04042a72dc09162f88482f84a60a68f432 [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:
7 dollar: '$'
8 label:
9 default_output:
10 filter:
11 add_general_fields:
12 tag: "**"
13 type: record_transformer
14 enable_ruby: true
15 record:
16 - name: Type
17 value: log
18 - name: environment_label
19 value: ${_param:cluster_domain}
20 - name: Hostname
21 value: ${fluentd:config:dollar}{ hostname }
22 - name: Timestamp
23 value: ${fluentd:config:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
24 match:
25 everything:
26 tag: '**'
27 type: 'file'
28 path: ${_param:fluentd_default_output_file}