It’s Urgent please help me in this - Is there any way to mute stream alerts on non-prod hours i.e at night time. In our environment, we are getting alerts on Slack
Is there any plugin for this?
Can I mute all streams alerts through web-interface? Or
Through API-Browser?
Graylog version - 2.4.6
Elasticsearch Version - 5.6
it is possible with a changed message processing. Because I did not know any plugin that would allow you to disable alerts for a given time you need to add a field to the messages that can act as a trigger - if the messages comes in during office our or not.
rule "Pipeline on Timing"
when
to_long(to_date($message.timestamp).hourOfDay) >= 10 &&
to_long(to_date($message.timestamp).hourOfDay) <= 5
then
set_field("Pipeline_Triggered_Condition", true);
end
@jan I want to schedule from 10 AM UTC to 5 AM UTC i.e for 19 hours only but above code did’t work. I think it’s checking greater than value ie if i write to_long(to_date($message.timestamp).hourOfDay) >= 5 && to_long(to_date($message.timestamp).hourOfDay) <= 10 then this will work. What I need to change in the code to schedule time between 10 AM UTC to 5 AM UTC.