# Temporarily failed to flush the buffer

**URL:** <https://discuss.elastic.co/t/temporarily-failed-to-flush-the-buffer/99243>\
**Category:** Elasticsearch\
**Created:** [September 4, 2017, 5:51am UTC](https://discuss.elastic.co/t/temporarily-failed-to-flush-the-buffer/99243 "2017-09-04T05:51:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy2428](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandy2428/32/46165_2.png) [@sandy2428](https://discuss.elastic.co/u/sandy2428)\
**Post date:** [September 4, 2017, 5:51am UTC](https://discuss.elastic.co/t/temporarily-failed-to-flush-the-buffer/99243/1 "2017-09-04T05:51:22Z")

</div>

Can someone help me to solve the below issue. Below is the configuration and the error I am facing:

2017-09-04 05:38:06 +0000 [info]: following tail of /var/log/nginx/access.log  
2017-09-04 05:38:06 +0000 [info]: following tail of /var/log/nginx/error.log  
2017-09-04 05:38:12 +0000 [warn]: temporarily failed to flush the buffer. next\_retry=2017-09-04 05:38:13 +0000 error\_class="Elasticsearch::Transport::Transport::Errors::ServiceUnavailable" error="[503] " plugin\_id="object:3f86a7b48328"  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:202:in `__raise_transport_error' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:319:in`perform\_request'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/client.rb:131:in`perform\_request'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/elasticsearch-api-5.0.4/lib/elasticsearch/api/actions/ping.rb:20:in `ping' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-elasticsearch-1.9.5/lib/fluent/plugin/out_elasticsearch.rb:162:in`client'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-elasticsearch-1.9.5/lib/fluent/plugin/out\_elasticsearch.rb:359:in `rescue in send_bulk' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-elasticsearch-1.9.5/lib/fluent/plugin/out_elasticsearch.rb:354:in`send\_bulk'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-elasticsearch-1.9.5/lib/fluent/plugin/out\_elasticsearch.rb:341:in `write_objects' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.35/lib/fluent/output.rb:490:in`write'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.35/lib/fluent/buffer.rb:354:in `write_chunk' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.35/lib/fluent/buffer.rb:333:in`pop'  
2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.35/lib/fluent/output.rb:342:in `try_flush' 2017-09-04 05:38:12 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.35/lib/fluent/output.rb:149:in`run'  
2017-09-04 05:38:13 +0000 [warn]: temporarily failed to flush the buffer. next\_retry=2017-09-04 05:38:15 +0000 error\_class="Elasticsearch::Transport::Transport::Errors::ServiceUnavailable" error="[503] " plugin\_id="object:3f86a7b48328"

 type tail path /var/log/nginx/access.log pos\_file /etc/td-agent/nginx\_access.pos refresh\_interval 30s read\_lines\_limit 100 tag nginx.access.log format none type tail path /var/log/nginx/error.log pos\_file /etc/td-agent/nginx\_access.pos refresh\_interval 30s read\_lines\_limit 100 tag nginx.error.log format none type record\_transformer hostname ${hostname} log\_file ${tag} type elasticsearch hosts logs-test-elk-455410.us-west-2.elb.amazonaws.com:9200 buffer\_chunk\_limit 1M buffer\_queue\_limit 16 flush\_interval 5s max\_retry\_wait 30 disable\_retry\_limit reload\_on\_failure true reload\_connections false resurrect\_after 0 logstash\_format true logstash\_prefix test\_nginxlogs

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 2, 2017, 5:51am UTC](https://discuss.elastic.co/t/temporarily-failed-to-flush-the-buffer/99243/2 "2017-10-02T05:51:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
