зеркало из https://github.com/mozilla/MozDef.git
Adding updated logrotate scripts for mozdef archival of old logs.
This commit is contained in:
Родитель
4b0ebf857a
Коммит
1d64edbd9b
|
@ -1,5 +1,6 @@
|
|||
/var/log/mozdef/mongo/*.log
|
||||
{
|
||||
su mozdef mozdef
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
|
@ -8,6 +9,7 @@
|
|||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
mv /var/log/mozdef/mongo/*.gz /var/logarchive/mozdef/
|
||||
service rsyslog reload-or-restart > /dev/null
|
||||
endscript
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
mv /var/log/mozdef/*.gz /var/logarchive/mozdef/
|
||||
service rsyslog reload-or-restart > /dev/null
|
||||
endscript
|
||||
}
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
/var/log/mozdef/nginx/*.error_log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 4
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 644 mozdef mozdef
|
||||
sharedscripts
|
||||
postrotate
|
||||
if [ -f /var/run/nginx.pid ]; then
|
||||
kill -USR1 `cat /var/run/nginx.pid`
|
||||
fi
|
||||
endscript
|
||||
/var/log/mozdef/nginx/*.error_log
|
||||
{
|
||||
su mozdef mozdef
|
||||
weekly
|
||||
missingok
|
||||
rotate 4
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 644 mozdef mozdef
|
||||
sharedscripts
|
||||
postrotate
|
||||
mv /var/log/mozdef/nginx/*.gz /var/logarchive/mozdef/
|
||||
if [ -f /var/run/nginx.pid ]; then
|
||||
kill -USR1 `cat /var/run/nginx.pid`
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче