blob: 258cc51c40f26cab9e00044d8db47520ffdd33fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/var/log/snort/*.log {
sharedscripts
missingok
notifempty
postrotate
/usr/bin/systemctl try-restart snort.service > /dev/null 2>&1 || true
endscript
}
/var/log/snort/alert_*.txt /var/log/snort/*.log.* {
nocompress
nocreate
olddir /var/log/snort/old
sharedscripts
missingok
notifempty
postrotate
/usr/bin/find /var/log/snort/old -maxdepth 1 -name 'alert_*' -type f -mtime +60 -exec /usr/bin/rm '{}' ';' > /dev/null 2>&1 || true
/usr/bin/find /var/log/snort/old -maxdepth 1 -name '*.log*' -type f -mtime +60 -exec /usr/bin/rm '{}' ';' > /dev/null 2>&1 || true
/usr/bin/systemctl try-restart snort.service > /dev/null 2>&1 || true
endscript
}
|