blob: 29921d08e241932e83a9f1df447b725b6d2201cc [file] [log] [blame]
classes:
- service.fluentd.agent.single
parameters:
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.%N%z') }
match:
elasticsearch_output:
tag: "**"
type: elasticsearch
host: 127.0.0.1
port: 9200