I see these errors in the fluentd logs before, fluetnd stopped forwarding logs to elasticsearch. I sanitized the logs and fluentd conf. What causes it and how can I fix the issue?
failed to flush the buffer. retry_time=16 next_retry_seconds=2019-01-24 19:13:56 +0000 chunk="5803240525c1ddbbb197dc0dd46ecbfa" error_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=>\"<SANITIZED>\", :port=>9243, :scheme=>\"https\", :user=>\"fluentd\", :password=>\"obfuscated\"}): connect_write timeout reached"
My sanitized td-agent configuration is
<source>
@type forward
port 24224
</source>
<match fluent.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix fluentd
type_name _doc
<buffer>
@type file
path /var/log/td-agent/fluent.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>
<match prod.ems.fix.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix onx-prod-ems-fix
type_name _doc
<buffer>
@type file
path /var/log/td-agent/buffer/prod.ems.fix.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>
<match prod.ems.app.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix onx-prod-ems-app
type_name _doc
<buffer>
@type file
path /var/log/td-agent/buffer/prod.ems.app.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>
<match production.poms.fix.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix onx-prod-poms
type_name _doc
<buffer>
@type file
path /var/log/td-agent/buffer/prod.poms.fix.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>
<match production.poms.nginx.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix onx-prod-poms
type_name _doc
<buffer>
@type file
path /var/log/td-agent/buffer/prod.poms.nginx.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>
<match production.poms.nodejs.**>
@type elasticsearch
host <SANITZED>
port 9243
scheme https
ssl_version TLSv1_2
user fluentd
password <SANITZED>
logstash_format true
logstash_prefix onx-prod-poms
type_name _doc
<buffer>
@type file
path /var/log/td-agent/buffer/prod.poms.nodejs.*.buffer
flush_thread_count 11
flush_interval 3s
chunk_limit_size 50m
queue_limit_length 4096
</buffer>
</match>