Move fluentd config under agent role
Change-Id: I5dbaf1f8ce81ef9fd4a256fbf7470f095a9d6cf7
diff --git a/fluentd/label/default_output/file.yml b/fluentd/label/default_output/file.yml
index 5e0050d..c67e1e0 100644
--- a/fluentd/label/default_output/file.yml
+++ b/fluentd/label/default_output/file.yml
@@ -2,26 +2,27 @@
_param:
fluentd_default_output_file: /var/log/td-agent/default-all.log
fluentd:
- config:
- dollar: '$'
- label:
- default_output:
- filter:
- add_general_fields:
- tag: "**"
- type: record_transformer
- enable_ruby: true
- record:
- - name: Type
- value: log
- - name: environment_label
- value: ${_param:cluster_domain}
- - name: Hostname
- value: ${fluentd:config:dollar}{ hostname }
- - name: Timestamp
- value: ${fluentd:config:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
- match:
- everything:
- tag: '**'
- type: 'file'
- path: ${_param:fluentd_default_output_file}
+ agent:
+ config:
+ dollar: '$'
+ label:
+ default_output:
+ filter:
+ add_general_fields:
+ tag: "**"
+ type: record_transformer
+ enable_ruby: true
+ record:
+ - name: Type
+ value: log
+ - name: environment_label
+ value: ${_param:cluster_domain}
+ - name: Hostname
+ value: ${fluentd:config:dollar}{ hostname }
+ - name: Timestamp
+ value: ${fluentd:config:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
+ match:
+ everything:
+ tag: '**'
+ type: 'file'
+ path: ${_param:fluentd_default_output_file}