trigat / suricata-alert

Parse through Suricata log and send email alerts using Python.
5 stars 1 forks source link

Suricata Alert

Parse through Suricata log and send e-mail alerts.

How to use

Save surialert.py to Suricata server and create cron job

# RUN EVERY 5 MINUTES
# Save to /etc/crontab

PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh

*/5 * * * * root cd /var/log/suricata && /usr/bin/python3 /var/log/suricata/surialert.py

If log contains search strings specified in script, an e-mail alert will be sent.