Commit 128756bd authored by Ad Schellevis's avatar Ad Schellevis

(ids) add log rotate

parent 354b0f68
rc.conf.d:/etc/rc.conf.d/suricata
rules.config:/usr/local/etc/suricata/rules.config
suricata.yaml:/usr/local/etc/suricata/suricata.yaml
newsyslog.conf:/etc/newsyslog.conf.d/suricata
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
{% if helpers.exists('OPNsense.IDS.general') and OPNsense.IDS.general.enabled|default("0") == "1"%}
{% set intf = helpers.getNodeByTag('interfaces.'+OPNsense.IDS.general.interfaces.split(',')[0]).if %}
/var/log/suricata/stats.log root:wheel 640 7 100 $D0 B /var/run/suricata_{{ intf }}.pid 1
/var/log/suricata/eve.json root:wheel 640 4 100 $W0D23 B /var/run/suricata_{{ intf }}.pid 1
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment