blob: 29921d08e241932e83a9f1df447b725b6d2201cc [file] [log] [blame]
Dmitry Kalashnikf8c85762017-11-28 13:59:42 +04001classes:
2- service.fluentd.agent.single
3parameters:
4 fluentd:
5 agent:
6 config:
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:dollar}{ hostname }
21 - name: Timestamp
22 value: ${fluentd:dollar}{ time.strftime('%Y-%m-%dT%H:%M:%S.%N%z') }
23 match:
24 elasticsearch_output:
25 tag: "**"
26 type: elasticsearch
27 host: 127.0.0.1
28 port: 9200