blob: aa96b316d4ca4e5c7618c11c5fabff6326c93c48 [file] [log] [blame]
Dmitry Kalashnik71779c52017-11-10 15:00:05 +04001classes:
2- service.fluentd.agent.output.elasticsearch
3parameters:
Machi Hoshino9ba9a112018-04-23 16:00:42 +09004 _param:
Dmitry Kalashnik71779c52017-11-10 15:00:05 +04005 fluentd_elasticsearch_host: 127.0.0.1
6 elasticsearch_port: 9200
7 fluentd:
8 agent:
9 config:
10 label:
11 default_output:
Dmitry Kalashnika7d78db2018-03-01 18:30:57 +040012 filter:
13 drop_nested_timestamp_and_sensitive_data:
14 tag: "openstack.**"
15 type: record_transformer
16 enable_ruby: true
17 remove_keys: '["_dummy_1", "_dummy_2", "_dummy_3"]'
18 record:
19 - name: _dummy_1
20 value: ${fluentd:dollar}{if record.has_key?("context"); record["context"].delete("timestamp") ; end; nil }
21 - name: _dummy_2
22 value: ${fluentd:dollar}{if record.has_key?("context"); record["context"].delete("auth_token"); end; nil}
23 - name: _dummy_3
24 value: ${fluentd:dollar}{if record.has_key?("context"); record["context"].delete("auth_token_info"); end; nil}
Mateusz Matuszkowiak781cece2018-03-12 12:23:43 +010025 drop_hostname_field:
26 tag: "openstack.**"
27 type: record_transformer
28 enable_ruby: true
29 remove_keys: '["hostname"]'
Mateusz Matuszkowiak18ff4b12018-03-13 14:15:00 +010030 change_pid_field_value:
31 tag: "haproxy.**"
32 type: record_transformer
33 enable_ruby: true
34 record:
35 - name: Pid
36 value: ${fluentd:dollar}{record["pid"]}
37 remove_keys: '["pid"]'
Dmitry Kalashnik71779c52017-11-10 15:00:05 +040038 match:
39 elasticsearch_output:
40 host: ${_param:fluentd_elasticsearch_host}
41 port: ${_param:elasticsearch_port}