blob: 80707d39302bf3ded755c52e3c301eed49ef3be7 [file] [log] [blame]
parameters:
_param:
fluentd_default_output_file: /var/log/td-agent/default-all.log
fluentd:
agent:
config:
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:dollar}{ hostname }
- name: Timestamp
value: ${fluentd:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S%z') }
match:
everything:
tag: '**'
type: 'file'
path: ${_param:fluentd_default_output_file}