2020-10-18 02:08:03 +08:00
|
|
|
# logrotate configuration for Memgraph Enterprise
|
2019-02-19 20:50:46 +08:00
|
|
|
# see "man logrotate" for details
|
|
|
|
|
2020-10-18 02:08:03 +08:00
|
|
|
/var/log/memgraph/memgraph.log {
|
|
|
|
# rotate log files weekly
|
|
|
|
weekly
|
|
|
|
# keep 5 weeks worth of backlog
|
|
|
|
rotate 5
|
|
|
|
# send SIGUSR1 to notify memgraph to recreate logfile
|
|
|
|
postrotate
|
|
|
|
/usr/bin/killall -s SIGUSR1 memgraph
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
2019-02-19 20:50:46 +08:00
|
|
|
/var/lib/memgraph/durability/audit/audit.log {
|
|
|
|
# rotate log files daily
|
|
|
|
daily
|
|
|
|
# keep one year worth of audit logs
|
|
|
|
rotate 365
|
|
|
|
# send SIGUSR2 to notify memgraph to recreate logfile
|
|
|
|
postrotate
|
|
|
|
/usr/bin/killall -s SIGUSR2 memgraph
|
|
|
|
endscript
|
|
|
|
}
|