291158160d
Not having one logrotate file produced an error during rpmlint. It makes sense to have one logrotate file after Memgraph is installed because it's easier to manage config files. There are two logrotate files in the codebase, one for Community and one for Enterprise edition. Having rotate files per offering also makes sense because offerings are affected less often compared to the features. It's easier to maintain.
25 lines
618 B
Plaintext
25 lines
618 B
Plaintext
# logrotate configuration for Memgraph Enterprise
|
|
# see "man logrotate" for details
|
|
|
|
/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
|
|
}
|
|
|
|
/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
|
|
}
|