# What happens when logstash can't access to elasticsearch

**URL:** <https://discuss.elastic.co/t/what-happens-when-logstash-cant-access-to-elasticsearch/273783>\
**Category:** Logstash\
**Created:** [May 24, 2021, 6:07am UTC](https://discuss.elastic.co/t/what-happens-when-logstash-cant-access-to-elasticsearch/273783 "2021-05-24T06:07:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rknd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rknd/32/103882_2.png) [@rknd](https://discuss.elastic.co/u/rknd)\
**Post date:** [May 24, 2021, 6:07am UTC](https://discuss.elastic.co/t/what-happens-when-logstash-cant-access-to-elasticsearch/273783/1 "2021-05-24T06:07:07Z")

</div>

I want to ask that, I have logstash pipelines. Output filter only goes elasticsearch.

when elasticsearch stops while logstash is running, logstash service stops with an error but what about sincedb ?

When i restart elasticsearch, will logstash work from where it left off or will i lose the data between them ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2021, 7:54am UTC](https://discuss.elastic.co/t/what-happens-when-logstash-cant-access-to-elasticsearch/273783/2 "2021-05-24T07:54:12Z")

</div>

> [@rknd](#):
>
> will logstash work from where it left off

Yes, that is what sincedb is designed to do.

---

<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:** [June 21, 2021, 7:55am UTC](https://discuss.elastic.co/t/what-happens-when-logstash-cant-access-to-elasticsearch/273783/3 "2021-06-21T07:55:03Z")

</div>

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