blob: 8fc89588eff1feda812feea9a070723130f2704e [file] [log] [blame]
Dmitry Kalashnik71779c52017-11-10 15:00:05 +04001classes:
2- service.fluentd.agent.output.elasticsearch
3parameters:
4 _params:
5 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"]'
Dmitry Kalashnik71779c52017-11-10 15:00:05 +040030 match:
31 elasticsearch_output:
32 host: ${_param:fluentd_elasticsearch_host}
33 port: ${_param:elasticsearch_port}