Bartosz Kupidura | e849696 | 2017-11-07 13:49:25 +0100 | [diff] [blame^] | 1 | parameters: |
| 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} |