# Need to configure the alert in logstash

**URL:** <https://discuss.elastic.co/t/need-to-configure-the-alert-in-logstash/49357>\
**Category:** Logstash\
**Created:** [May 5, 2016, 11:42pm UTC](https://discuss.elastic.co/t/need-to-configure-the-alert-in-logstash/49357 "2016-05-05T23:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asifalis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asifalis/32/6478_2.png) [@asifalis](https://discuss.elastic.co/u/asifalis)\
**Post date:** [May 5, 2016, 11:42pm UTC](https://discuss.elastic.co/t/need-to-configure-the-alert-in-logstash/49357/1 "2016-05-05T23:42:42Z")

</div>

Hi Expert !

I want to configure the alert in logstash, if some condition matched like "404" or "SWIC023" in log message then logstash server generate the alert on specific email. so is it possible that we configure the alert ??

---

<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:** [May 5, 2016, 11:49pm UTC](https://discuss.elastic.co/t/need-to-configure-the-alert-in-logstash/49357/2 "2016-05-05T23:49:21Z")

</div>

Yes, using conditionals you can do this - [https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#conditionals](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#conditionals)

---

<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 6, 2017, 4:59am UTC](https://discuss.elastic.co/t/need-to-configure-the-alert-in-logstash/49357/3 "2017-07-06T04:59:08Z")

</div>


