I am setting up Alerting Rules under Rules and Connections.
My query works great, but I need to not see the alerts during the maintenance window from 9 pm to 5 am.
Here is my query:
{
"query" : {
"bool" : {
"must" : [
{"match" : {"log.level" : "Error"}}
],
"filter": [
{"terms": {
"agent.hostname": [
"Server1p",
"Server2p",
"Server3p"
]
}}
]
}
}
}
How can I add a condition to only have the query work from 5 am to 9 pm?