# Logstash service restarts constantly and does send data to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662>\
**Category:** Logstash\
**Created:** [February 16, 2019, 1:08am UTC](https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662 "2019-02-16T01:08:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradfordaemorton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bradfordaemorton](https://discuss.elastic.co/u/bradfordaemorton)\
**Post date:** [February 16, 2019, 1:08am UTC](https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662/1 "2019-02-16T01:08:33Z")

</div>

I have a problem with the Logstash service constantly restarting and never sending data elasticsearch. There must be a bad config or a file missing in a location that it is set to read on startup. If I run manually, Logstash starts and sends data to elasticsearch correctly.

I did do a bit of reading and found that the .conf files are meant to be in /etc/logstash/conf.d not /etc/Logstash which is where I had them, but I still have issues even after moving the files. Is there a log file to check for errors? Also, is there a place to download the default .yml and .conf files located in the /etc/logstash/ directory so I copy replace any that I might have updated incorrectly.

---

<div class="post-metadata">

**Author:** ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)\
**Post date:** [February 18, 2019, 10:14am UTC](https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662/2 "2019-02-18T10:14:21Z")

</div>

Hello, if you could provide the input code, which is stopping you to sent data to ES, then it will help you to get resolved quickly.

---

<div class="post-metadata">

**Author:** ![bradfordaemorton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bradfordaemorton](https://discuss.elastic.co/u/bradfordaemorton)\
**Post date:** [February 18, 2019, 8:49pm UTC](https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662/3 "2019-02-18T20:49:43Z")

</div>

Thanks balumurari1,

I am not sure what changed but logs are now arriving at Elastic and starts after a reboot. The logstash services still reboots after a few minutes but doesn't appear to impact log shipping.

The problem I am still having issues with is monitoring Logstash in the elastic/kibana monitoring dashboard.

As you can see I have been able to colelct Elasticsearch, Kibana, Filebeat and Winlogbeat monitring data from different hosts but have not had any success with Logstash.

Can anyone suggest some solutions - my configuration file with the monitoring section is attached.

Cheers,  
Brad

 ![ELK_Monitoring.JPG](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39bb543d75f3cc01cef041fb9c72d3157ca23195.jpeg)

# ------------ X-Pack Settings (not applicable for OSS build)--------------

# X-Pack Monitoring

# [https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html](https://www.elastic.co/guide/en/logstash/current/monitoring-logstash.html)

xpack.monitoring.enabled: true  
#xpack.monitoring.elasticsearch.username: logstash\_system  
#xpack.monitoring.elasticsearch.password: password  
xpack.monitoring.elasticsearch.host: ["[http://elastic.x.info:9200](http://elastic.x.info:9200/)"]  
xpack.monitoring.elasticsearch.url: ["[http://elastic.x.info:9200](http://elastic.x.info:9200/)"]  
#xpack.monitoring.elasticsearch.ssl.ca: ["/path/to/ca.crt"]  
#xpack.monitoring.elasticsearch.ssl.truststore.path: path/to/file  
#xpack.monitoring.elasticsearch.ssl.truststore.password: password  
#xpack.monitoring.elasticsearch.ssl.keystore.path: /path/to/file  
#xpack.monitoring.elasticsearch.ssl.keystore.password: password  
#xpack.monitoring.elasticsearch.ssl.verification\_mode: certificate  
#xpack.monitoring.elasticsearch.sniffing: false  
xpack.monitoring.collection.interval: 10s  
xpack.monitoring.collection.pipeline.details.enabled: true

# X-Pack Management

# [https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html](https://www.elastic.co/guide/en/logstash/current/logstash-centralized-pipeline-management.html)

xpack.management.enabled: true  
#xpack.management.pipeline.id: ["main", "apache\_logs"]  
#xpack.management.elasticsearch.username: logstash\_admin\_user  
#xpack.management.elasticsearch.password: password  
xpack.management.elasticsearch.url: ["[http://elstic.x.info:9200](http://elstic.x.info:9200/)"]  
#xpack.management.elasticsearch.ssl.ca: ["/path/to/ca.crt"]  
#xpack.management.elasticsearch.ssl.truststore.path: /path/to/file  
#xpack.management.elasticsearch.ssl.truststore.password: password  
#xpack.management.elasticsearch.ssl.keystore.path: /path/to/file  
#xpack.management.elasticsearch.ssl.keystore.password: password  
#xpack.management.elasticsearch.ssl.verification\_mode: certificate  
xpack.management.elasticsearch.sniffing: true  
xpack.management.logstash.poll\_interval: 5s

---

<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:** [March 18, 2019, 8:49pm UTC](https://discuss.elastic.co/t/logstash-service-restarts-constantly-and-does-send-data-to-elasticsearch/168662/4 "2019-03-18T20:49:52Z")

</div>

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