Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable log rotation for PostgreSQL #908

Closed
to-bar opened this issue Feb 11, 2020 · 0 comments
Closed

Add configurable log rotation for PostgreSQL #908

to-bar opened this issue Feb 11, 2020 · 0 comments

Comments

@to-bar
Copy link
Contributor

to-bar commented Feb 11, 2020

By default, on RHEL there is weekly log rotation (without size limit) handled by PostgreSQL logging collector and on Ubuntu it's logrotate configured like below:

/var/log/postgresql/*.log {
       weekly
       rotate 10
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
       su root root
}

Additional info:
https://www.postgresql.org/docs/current/logfile-maintenance.html
https://dba.stackexchange.com/questions/159528/in-postgres-set-log-rotation-size-but-my-logs-are-still-not-rotating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants