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: |
Bartosz Kupidura | d7b9c2e | 2017-11-22 10:08:36 +0100 | [diff] [blame] | 5 | agent: |
| 6 | config: |
Bartosz Kupidura | d7b9c2e | 2017-11-22 10:08:36 +0100 | [diff] [blame] | 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 |
Bartosz Kupidura | cd8f648 | 2017-11-23 12:42:29 +0100 | [diff] [blame] | 20 | value: ${fluentd:dollar}{ hostname } |
Bartosz Kupidura | d7b9c2e | 2017-11-22 10:08:36 +0100 | [diff] [blame] | 21 | - name: Timestamp |
Bartosz Kupidura | cd8f648 | 2017-11-23 12:42:29 +0100 | [diff] [blame] | 22 | value: ${fluentd:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') } |
Bartosz Kupidura | d7b9c2e | 2017-11-22 10:08:36 +0100 | [diff] [blame] | 23 | match: |
| 24 | everything: |
| 25 | tag: '**' |
| 26 | type: 'file' |
| 27 | path: ${_param:fluentd_default_output_file} |