# Handle short time connection issues - Filebeat

**URL:** <https://discuss.elastic.co/t/handle-short-time-connection-issues-filebeat/299250>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [March 9, 2022, 5:26pm UTC](https://discuss.elastic.co/t/handle-short-time-connection-issues-filebeat/299250 "2022-03-09T17:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvin495](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvin495/32/98571_2.png) [@arvin495](https://discuss.elastic.co/u/arvin495)\
**Post date:** [March 9, 2022, 5:26pm UTC](https://discuss.elastic.co/t/handle-short-time-connection-issues-filebeat/299250/1 "2022-03-09T17:26:29Z")

</div>

Hello Team,

we are running 3 node Elasticsearch cluster. All our k8s cluster has filebeats configured - which pushes the logs to Elasticsearch.

We have a requirement of upgrading the the Elasticsearch. when I performed a POC upgradation, I observed that there were some logs missing at the time of upgrade. upgrade duration is 2 hours

we found few following errors at this time period.

`no server is available to handle this request`

Can we do something on filebeat level in such a way that filebeat should hold the data for certain time before it releases it? or filebeat should wait till Elasticsearch is available for certain period of time?

This is input config

```auto
    filebeat.inputs:
    - type: docker
      containers.ids:
      - '*'
      processors:
      - decode_json_fields:
          fields: ['message']
          target: ""
          process_array: false
          max_depth: 1
          overwrite_keys: true
          add_error_key: true                      
      - add_kubernetes_metadata: ~

```

---

<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:** [April 6, 2022, 7:27pm UTC](https://discuss.elastic.co/t/handle-short-time-connection-issues-filebeat/299250/2 "2022-04-06T19:27:13Z")

</div>

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