# Disable Graylog Alert on specific time

**URL:** <https://community.graylog.org/t/disable-graylog-alert-on-specific-time/24712>\
**Category:** Graylog Central (peer support)\
**Created:** [July 11, 2022, 5:46am UTC](https://community.graylog.org/t/disable-graylog-alert-on-specific-time/24712 "2022-07-11T05:46:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ericwu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ericwu/32/11131_2.png) [@ericwu](https://community.graylog.org/u/ericwu)\
**Post date:** [July 12, 2022, 2:16am UTC](https://community.graylog.org/t/disable-graylog-alert-on-specific-time/24712/3 "2022-07-12T02:16:00Z")

</div>

@gsmith Thanks for your reply.  
I try to set pipeline rule to do this.  
But I want to know how can I set “half hour” in the rule ?

```auto
rule "add send alert field to message"
when
  to_long(to_date($message.timestamp).hourOfDay) >= 6 &&
  to_long(to_date($message.timestamp).hourOfDay) <= 7

then
  set_field("disable_alert", true);
end

```

I found the function “minute of hour”, but I don’t know how to define 6:00 to 6:30.  
Any idea ?

---

_[View the full topic](https://community.graylog.org/t/disable-graylog-alert-on-specific-time/24712)._
