# Fatal Error Block in setup after succesfull connection

**URL:** <https://discuss.elastic.co/t/fatal-error-block-in-setup-after-succesfull-connection/255255>\
**Category:** Logstash\
**Created:** [November 12, 2020, 8:11pm UTC](https://discuss.elastic.co/t/fatal-error-block-in-setup-after-succesfull-connection/255255 "2020-11-12T20:11:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 12, 2020, 8:26pm UTC](https://discuss.elastic.co/t/fatal-error-block-in-setup-after-succesfull-connection/255255/2 "2020-11-12T20:26:46Z")

</div>

So logstash is able to connect to elasticsearch but when it tries to setup ilm it sends a request to elasticsearch to determine whether the rollover index exists. That is getting an error. The elasticsearch logs may give a better error message to explain why it is rejecting the request.

One possibility would be a 403 (possibly your user has the [wrong role](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/907)).

Check the elasticsearch logs and enable log.level debug in logstash in case you have a problem with certificates or keys.

---

_[View the full topic](https://discuss.elastic.co/t/fatal-error-block-in-setup-after-succesfull-connection/255255)._
