# Logstash cannot send output to elasticsearch when elasticsearch not restarted first

**URL:** <https://discuss.elastic.co/t/logstash-cannot-send-output-to-elasticsearch-when-elasticsearch-not-restarted-first/310230>\
**Category:** Logstash\
**Created:** [July 21, 2022, 4:57am UTC](https://discuss.elastic.co/t/logstash-cannot-send-output-to-elasticsearch-when-elasticsearch-not-restarted-first/310230 "2022-07-21T04:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichYaNa](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@RichYaNa](https://discuss.elastic.co/u/RichYaNa)\
**Post date:** [July 21, 2022, 4:57am UTC](https://discuss.elastic.co/t/logstash-cannot-send-output-to-elasticsearch-when-elasticsearch-not-restarted-first/310230/1 "2022-07-21T04:57:36Z")

</div>

Hi Everyone,

I have a problem here when I run EL (elasticsearch and logstash) as a service in linux

the problem is, logstash cannot output to the elasticsearch. But if i restart the elasticsearch service, suddenly all the output from logstash instantly in to the elasticsearch index

Is you guys have a same problem or just me that had a miss configuration for my EL instances?

Thanks.

---

<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:** [August 18, 2022, 4:57am UTC](https://discuss.elastic.co/t/logstash-cannot-send-output-to-elasticsearch-when-elasticsearch-not-restarted-first/310230/2 "2022-08-18T04:57:58Z")

</div>

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