# Send an email when Logstash service is down/not running

**URL:** https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068
**Category:** Logstash
**Created:** [July 7, 2022, 2:58am UTC](https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068 "2022-07-07T02:58:54Z")
**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: [July 7, 2022, 2:58am UTC](https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068/1 "2022-07-07T02:58:54Z")

</div>

Hi team,  
I have run Logstash as a service in Remote windows. It is working fine now.  
But in case of failure scenario, If Logstash service shuts down unexpectedly, then I need to send(alert) an email to the team.  
How can we achieve by reading log file?  
The same scenario needs to apply in production environment also.

Could you @Rios@Badger please help here?

Thanks  
Suresh U.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 7, 2022, 4:03am UTC](https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068/2 "2022-07-07T04:03:29Z")

</div>

> [@suresh\_u](#):
>
> Could you @Rios @sudhagar_ramesh @Badger please help here?

Please do not ping people who have not shown interest in a thread. It is considered rude in this forum.

Many of us watch for threads that we can provide assistance on. Demanding that assistance actually discourages me from commenting.

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [July 7, 2022, 5:56am UTC](https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068/3 "2022-07-07T05:56:33Z")

</div>

@suresh_u it sounds like something is not OK in your environment. Check your LS logs.

You can monitor LS by [FB module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-logstash.html) but will not send an alert.

---

<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 4, 2022, 5:57am UTC](https://discuss.elastic.co/t/send-an-email-when-logstash-service-is-down-not-running/309068/4 "2022-08-04T05:57:02Z")

</div>

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