# Unit logstash.service entered failed state

**URL:** https://discuss.elastic.co/t/unit-logstash-service-entered-failed-state/162804
**Category:** Logstash
**Created:** [January 3, 2019, 12:36pm UTC](https://discuss.elastic.co/t/unit-logstash-service-entered-failed-state/162804 "2019-01-03T12:36:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arun5635](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@arun5635](https://discuss.elastic.co/u/arun5635)
#### Post date: [January 3, 2019, 12:36pm UTC](https://discuss.elastic.co/t/unit-logstash-service-entered-failed-state/162804/1 "2019-01-03T12:36:42Z")

</div>

I am trying to start `logstash` via sudo service logstash start

Redirecting to /bin/systemctl status logstash.service  
● logstash.service - logstash  
Loaded: loaded (/etc/systemd/system/logstash.service; disabled; vendor preset: disabled)  
Active: active (running) since Thu 2019-01-03 11:49:52 UTC; 22min ago  
Main PID: 11405 (java)  
CGroup: /system.slice/logstash.service  
└─11405 /bin/java -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.aw...

Jan 03 11:49:52 ip-172-31-40-86.us-west-2.compute.internal systemd[1]: logstash.service: main process exited, code=exited, status=143/n/a  
Jan 03 11:49:52 ip-172-31-40-86.us-west-2.compute.internal systemd[1]: Unit logstash.service entered failed state.  
Jan 03 11:49:52 ip-172-31-40-86.us-west-2.compute.internal systemd[1]: logstash.service failed.  
Jan 03 11:49:52 ip-172-31-40-86.us-west-2.compute.internal systemd[1]: Started logstash.  
Jan 03 11:49:52 ip-172-31-40-86.us-west-2.compute.internal systemd[1]: Starting logstash...

It seems to succeed (service status now is `active` ), however nothing gets written in `logstash` 's own logs, under `/var/log/logstash/logstash-plain.log`

Until a few minutes ago, starting / stopping the `logstash` service did produce output in the above log.

---

<div class="post-metadata">

### Author: ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)
#### Post date: [January 3, 2019, 4:00pm UTC](https://discuss.elastic.co/t/unit-logstash-service-entered-failed-state/162804/2 "2019-01-03T16:00:11Z")

</div>

Check /var/log/logstash-stderr.log and /var/log/logstash-stdout.log if they exist. If not, try starting logstash manually (without systemd) to see if anything gets written to your console.

---

<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: [January 31, 2019, 4:09pm UTC](https://discuss.elastic.co/t/unit-logstash-service-entered-failed-state/162804/3 "2019-01-31T16:09:28Z")

</div>

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