# GrayLog 5 and Alerts

**URL:** <https://community.graylog.org/t/graylog-5-and-alerts/29178>\
**Category:** Graylog Central (peer support)\
**Created:** [June 15, 2023, 3:01pm UTC](https://community.graylog.org/t/graylog-5-and-alerts/29178 "2023-06-15T15:01:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmarko](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@pmarko](https://community.graylog.org/u/pmarko)\
**Post date:** [June 15, 2023, 3:01pm UTC](https://community.graylog.org/t/graylog-5-and-alerts/29178/1 "2023-06-15T15:01:54Z")

</div>

Hello everyone,  
I’m new here and I’m currently dealing with the GrayLog server.

I would like to create an alarm for the inputs so that if no logs come in for a long time, an alarm is triggered or do you have any other ideas on how to check/control this?

I hope you can help me here.

Thanks very much

---

<div class="post-metadata">

**Author:** ![drewmiranda-gl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/drewmiranda-gl/32/13376_2.png) [@drewmiranda-gl](https://community.graylog.org/u/drewmiranda-gl)\
**Post date:** [June 15, 2023, 9:15pm UTC](https://community.graylog.org/t/graylog-5-and-alerts/29178/2 "2023-06-15T21:15:42Z")

</div>

You can do something similar to this post: [Alert when no logs is sent from a host | ChatGPT solution - #7 by drewmiranda-gl](https://community.graylog.org/t/alert-when-no-logs-is-sent-from-a-host-chatgpt-solution/29098/7)

Be sure to change the search criteria to suite your needs. For example you can have a query that searches for messages from a specific graylog input:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/6/615977fd6dea805c96985a72a5ac355c2b1c9c65.png)

You can find the correct input by adding that field to the message table.

![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/c/cbdc96127801535583c2bda18ecf8838d6a4bf4c.png)

---

<div class="post-metadata">

**Author:** ![pmarko](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@pmarko](https://community.graylog.org/u/pmarko)\
**Post date:** [June 16, 2023, 7:24am UTC](https://community.graylog.org/t/graylog-5-and-alerts/29178/3 "2023-06-16T07:24:33Z")

</div>

Thanks, this has helped me before.  
That’s how it works.

But if there is no message for 5 minutes because it is a switch, for example, then I get 5 messages.

Is it possible to set this up better so that I only get one message per event and if it works again and then stops, another message comes up?

THANKS!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [June 30, 2023, 7:24am UTC](https://community.graylog.org/t/graylog-5-and-alerts/29178/4 "2023-06-30T07:24:47Z")

</div>

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