mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add logrotate
This commit is contained in:
12
salt/suricata/files/suri-rotate.conf
Normal file
12
salt/suricata/files/suri-rotate.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
/opt/so/log/suricata/stats.log
|
||||
{
|
||||
daily
|
||||
rotate 2
|
||||
missingok
|
||||
nocompress
|
||||
create
|
||||
sharedscripts
|
||||
postrotate
|
||||
docker exec -d so-suricata sh -c 'kill -HUP 6'
|
||||
endscript
|
||||
}
|
||||
@@ -152,3 +152,9 @@ so-suricata:
|
||||
- file: surithresholding
|
||||
- file: /opt/so/conf/suricata/rules/
|
||||
- file: /opt/so/conf/suricata/bpf
|
||||
|
||||
surilogrotate:
|
||||
file.managed:
|
||||
- name: /etc/logrotate.d/suristats
|
||||
- source: salt://suricata/files/suri-rotate.conf
|
||||
- mode: 644
|
||||
Reference in New Issue
Block a user