blob: 84b2dc1ecb04a4fcde1774490d52ed76b74bb5c1 [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}
Dmitry Kalashnik71779c52017-11-10 15:00:05 +040025 match:
26 elasticsearch_output:
27 host: ${_param:fluentd_elasticsearch_host}
28 port: ${_param:elasticsearch_port}