# Logstash shutdown alert

**URL:** https://discuss.elastic.co/t/logstash-shutdown-alert/308232
**Category:** Logstash
**Created:** [June 27, 2022, 10:34am UTC](https://discuss.elastic.co/t/logstash-shutdown-alert/308232 "2022-06-27T10:34:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![suresh\_u](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suresh_u/32/107394_2.png) [@suresh\_u](https://discuss.elastic.co/u/suresh_u)
#### Post date: [June 27, 2022, 10:34am UTC](https://discuss.elastic.co/t/logstash-shutdown-alert/308232/1 "2022-06-27T10:34:23Z")

</div>

Hi Team,  
I am using Logstash 7.17.4 for transferring Oracle DB data to ElasticSearch index.  
Logstash is running perfectly as a windows service(Running on Remote Windows machine) and syncing also happening perfectly.  
My question is:  
**If any shutdown happens to Logstash, it should be alerted through mail.**  
**How can we implement this feature?**

Thanks,  
Suresh U.

---

<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: [June 28, 2022, 12:49am UTC](https://discuss.elastic.co/t/logstash-shutdown-alert/308232/2 "2022-06-28T00:49:02Z")

</div>

You'd need to be monitoring Logstash somehow, and then based on however you are monitoring it, generate an alert.

You could monitor it with;

- Heartbeat on port 9600
- Filebeat through the Logstash logs, watching for the logged shutdown line
- Metricbeat to watch that the process exists.

---

<div class="post-metadata">

### Author: ![suresh\_u](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suresh_u/32/107394_2.png) [@suresh\_u](https://discuss.elastic.co/u/suresh_u)
#### Post date: [June 28, 2022, 2:55am UTC](https://discuss.elastic.co/t/logstash-shutdown-alert/308232/3 "2022-06-28T02:55:40Z")

</div>

Thanks a lot Warkolm for the quick update.  
I will implement and will update.

---

<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: [July 26, 2022, 2:56am UTC](https://discuss.elastic.co/t/logstash-shutdown-alert/308232/4 "2022-07-26T02:56:23Z")

</div>

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