Fix logrotate configuration

log2mail-beats
Eric Morino 3 years ago
parent 1e3ac40167
commit 61e007d22b

@ -1,7 +1,11 @@
/var/log/postgresql/*.log {
daily
missingok
rotate 10
create 640 postgres adm
copytruncate
nodelaycompress
compress
notifempty
missingok
su root root
}

@ -2,5 +2,5 @@
- name: logrotate configuration
copy:
src: logrotate_postgresql
dest: /etc/logrotate.d/postgresql
dest: /etc/logrotate.d/postgresql-common
force: no

Loading…
Cancel
Save