Skip to content

Commit 471bd0f

Browse files
JohnGarbuttbbezak
authored andcommitted
Add suppress_type_name to stop warnings with ES7
When using elasticsearch 7 with fluentd, you seem to get a lot of warnings in the docker logs output that look like: [types removal] Specifying types in bulk requests is deprecated. The docs suggest adding suppress_type_name to stop these warnings, and that seems to work without affecting any functionality. Further info here: uken/fluent-plugin-elasticsearch#785 Closes-Bug: #1930856 Change-Id: I45be67df3717f78d78bcdc7df69600ab8681922f (cherry picked from commit dee9d22)
1 parent 087834e commit 471bd0f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

ansible/roles/common/templates/conf/output/00-local.conf.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
reconnect_on_error true
3636
buffer_type file
3737
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_swift_facility }}.*
38+
suppress_type_name true
3839
</store>
3940
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
4041
<store>
@@ -97,6 +98,7 @@
9798
reconnect_on_error true
9899
buffer_type file
99100
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_haproxy_facility }}.*
101+
suppress_type_name true
100102
</store>
101103
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
102104
<store>
@@ -157,6 +159,7 @@
157159
reconnect_on_error true
158160
buffer_type file
159161
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_glance_tls_proxy_facility }}.*
162+
suppress_type_name true
160163
</store>
161164
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
162165
<store>
@@ -218,6 +221,7 @@
218221
reconnect_on_error true
219222
buffer_type file
220223
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_neutron_tls_proxy_facility }}.*
224+
suppress_type_name true
221225
</store>
222226
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
223227
<store>

ansible/roles/common/templates/conf/output/01-es.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
reconnect_on_error true
2626
buffer_type file
2727
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/openstack.*
28+
suppress_type_name true
2829
</store>
2930
</match>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Stops Fluentd warning message when posting to Elasticsearch 7 bulk
5+
API.

0 commit comments

Comments
 (0)