Dmitry Kalashnik | 71779c5 | 2017-11-10 15:00:05 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - service.fluentd.agent.output.elasticsearch |
| 3 | parameters: |
Machi Hoshino | 9ba9a11 | 2018-04-23 16:00:42 +0900 | [diff] [blame] | 4 | _param: |
Dmitry Kalashnik | 71779c5 | 2017-11-10 15:00:05 +0400 | [diff] [blame] | 5 | fluentd_elasticsearch_host: 127.0.0.1 |
| 6 | elasticsearch_port: 9200 |
| 7 | fluentd: |
| 8 | agent: |
| 9 | config: |
| 10 | label: |
| 11 | default_output: |
Dmitry Kalashnik | a7d78db | 2018-03-01 18:30:57 +0400 | [diff] [blame] | 12 | 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 Matuszkowiak | 781cece | 2018-03-12 12:23:43 +0100 | [diff] [blame] | 25 | drop_hostname_field: |
| 26 | tag: "openstack.**" |
| 27 | type: record_transformer |
| 28 | enable_ruby: true |
| 29 | remove_keys: '["hostname"]' |
Mateusz Matuszkowiak | 18ff4b1 | 2018-03-13 14:15:00 +0100 | [diff] [blame] | 30 | 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 Kalashnik | 71779c5 | 2017-11-10 15:00:05 +0400 | [diff] [blame] | 38 | match: |
| 39 | elasticsearch_output: |
| 40 | host: ${_param:fluentd_elasticsearch_host} |
| 41 | port: ${_param:elasticsearch_port} |