Skip to content

Commit

Permalink
Add suppress_type_name to stop warnings with ES7
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JohnGarbutt authored and dougszumski committed Jun 4, 2021
1 parent 008ada9 commit dee9d22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/common/templates/conf/output/00-local.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
reconnect_on_error true
buffer_type file
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_swift_facility }}.*
suppress_type_name true
</store>
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
<store>
Expand Down Expand Up @@ -97,6 +98,7 @@
reconnect_on_error true
buffer_type file
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_haproxy_facility }}.*
suppress_type_name true
</store>
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
<store>
Expand Down Expand Up @@ -157,6 +159,7 @@
reconnect_on_error true
buffer_type file
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_glance_tls_proxy_facility }}.*
suppress_type_name true
</store>
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
<store>
Expand Down Expand Up @@ -218,6 +221,7 @@
reconnect_on_error true
buffer_type file
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/{{ syslog_neutron_tls_proxy_facility }}.*
suppress_type_name true
</store>
{% elif enable_monasca | bool and monasca_ingest_control_plane_logs | bool %}
<store>
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/common/templates/conf/output/01-es.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
reconnect_on_error true
buffer_type file
buffer_path /var/lib/fluentd/data/elasticsearch.buffer/openstack.*
suppress_type_name true
</store>
</match>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Stops Fluentd warning message when posting to Elasticsearch 7 bulk
API.

0 comments on commit dee9d22

Please sign in to comment.