# Need to restart filebeat time to time

**URL:** <https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 12, 2021, 7:42am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845 "2021-04-12T07:42:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danushkalakmina](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danushkalakmina](https://discuss.elastic.co/u/danushkalakmina)\
**Post date:** [April 12, 2021, 7:42am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/1 "2021-04-12T07:42:59Z")

</div>

Hi i have issue on filebeat Logs are not showing every 6hours(approximately) in Kibana dashboard. After restarting the filebeat ,Kibana dashboard gets logs again .my filebeat needs to restart around every 6 hours to keep working fine the log shipping process.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [April 12, 2021, 8:06am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/2 "2021-04-12T08:06:11Z")

</div>

Do you see any errors in logs? Did you try to enable debug logging?

---

<div class="post-metadata">

**Author:** ![danushkalakmina](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danushkalakmina](https://discuss.elastic.co/u/danushkalakmina)\
**Post date:** [April 12, 2021, 9:55am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/3 "2021-04-12T09:55:16Z")

</div>

Hi @mtojek  
Error in logstash server log file /var/log/logstash/logstash-plain.log

[ERROR][logstash.outputs.amazones] Attempted to send a bulk request to Elasticsearch configured at '["[https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443)"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided? {:client\_config=\>{:hosts=\>["[https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443)"], :region=\>"us-east-1", :transport\_options=\>{:request=\>{:open\_timeout=\>0, :timeout=\>60}, :proxy=\>nil, :headers=\>{"Content-Type"=\>"application/json"}}, :transport\_class=\>Elasticsearch::Transport::Transport::HTTP::AWS}, :error\_message=\>"[search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](http://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443) failed to respond", :error\_class=\>"Faraday::ClientError", :backtrace=\>nil}

[2021-04-01T21:56:09,911][WARN][logstash.outputs.amazones] Failed to flush outgoing items {:outgoing\_count=\>1, :exception=\>"Faraday::ClientError", :backtrace=\>nil}

[2021-04-01T22:50:07,628][ERROR][logstash.outputs.amazones] Attempted to send a bulk request to Elasticsearch configured at '["[https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443)"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided? {:client\_config=\>{:hosts=\>["[https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](https://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443)"], :region=\>"us-east-1", :transport\_options=\>{:request=\>{:open\_timeout=\>0, :timeout=\>60}, :proxy=\>nil, :headers=\>{"Content-Type"=\>"application/json"}}, :transport\_class=\>Elasticsearch::Transport::Transport::HTTP::AWS}, :error\_message=\>"[search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443](http://search-pbc-prod-qlkounnhsmutmhmqzqtjdpvjfu.us-east-1.es.amazonaws.com:443) failed to respond", :error\_class=\>"Faraday::ClientError", :backtrace=\>nil}

[2021-04-01T22:50:07,629][WARN][logstash.outputs.amazones] Failed to flush outgoing items {:outgoing\_count=\>1, :exception=\>"Faraday::ClientError", :backtrace=\>nil}

---

<div class="post-metadata">

**Author:** ![danushkalakmina](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danushkalakmina](https://discuss.elastic.co/u/danushkalakmina)\
**Post date:** [April 12, 2021, 9:55am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/4 "2021-04-12T09:55:56Z")

</div>

i got this on logstash log file but this was not repeated

---

<div class="post-metadata">

**Author:** ![danushkalakmina](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danushkalakmina](https://discuss.elastic.co/u/danushkalakmina)\
**Post date:** [April 12, 2021, 9:56am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/5 "2021-04-12T09:56:36Z")

</div>

@mtojek And i got  
Null exeption error on application server /etc/filebeat-stderror.log

Exception in thread "Thread-2" java.lang.NullPointerException  
at org.jruby.util.JRubyClassLoader$1.run(JRubyClassLoader.java:119)  
Exception in thread "Thread-2" java.lang.NullPointerException  
at org.jruby.util.JRubyClassLoader$1.run(JRubyClassLoader.java:119)

---

<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:** [May 10, 2021, 11:56am UTC](https://discuss.elastic.co/t/need-to-restart-filebeat-time-to-time/269845/6 "2021-05-10T11:56:41Z")

</div>

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