For example, over 4000 events per day should have an email notification.
Asked
Active
Viewed 286 times
1 Answers
0
If you are using Open Distro, where no CCS is being used and want to create an email notification for over 4000 events in a day, find below the high level steps:
- Click on Alerting on the left menu
- Click on Destinations tab and Add destination, this will be an Email as a destination, enter a valid email and the smtp configuration under Manage Senders, then select it under Sender, add a recipient email under Recipients
- Create a Monitor: Under Method of definition you can select
Define using visual graph
, under Index enterwazuh-alerts*
(this will select all events that you visualize under Wazuh>Modules>Security Events), under Time field you can select@timestamp
. Leave theWHEN Count()
,OVER all documents
andWHERE all fields are included
as default, in optionFOR THE LAST …
select for the last24 hours
. Finally select the frequency under Monitor Schedule asDaily
and the time when you want this to run, alternatively you can selectBy interval
and run it Every1 Days
, click on Create - With the Monitor created you will have to create a trigger, in trigger condition enter
IS ABOVE 4,000
. Under Configure actions select the Destination created in step 2, then the Message subject you would like the recipient to receive and you can leave the Message by default, it uses Mustache if you would like to edit it, you can send a test message to check if the Destination and smtp is configured correctly. Click on Create - Last step is to enable your monitor in case it was not enabled when created, select it from Monitors tab and click on Actions>Enable
I hope you are able to configure it, let me know!

C. Dams
- 31
- 4
-
I created but its not being triggered, I don't know why. Thanks for you answer! – amy Sep 21 '22 at 21:54
-
Are you getting to the specific condition for the alert to be triggered? does it show any error? make sure the monitor is enabled – C. Dams Sep 22 '22 at 12:18
-
Yes, I put that for over 4,000 events the alert is generated and the daily average is 5,000 events. I put 4,000 to take the test. No errors are appearing, and the monitor is active to run every day at the same time. – amy Sep 22 '22 at 13:01