-
Notifications
You must be signed in to change notification settings - Fork 107
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
[FEATURE REQUEST] Implement log rotation for PGBouncer #921
Comments
I was able to deploy epiphany, with separated HA PostgreSQL machine. To enable pgbouncer log rotation, we need to add the following code into our main build YAML file: kind: configuration/postgresql |
PGBouncer log rotation, and sending logs into ELK stack works properly on Ubuntu host. |
Checked on Azure - logs can be rotated, and they're pushed into ELK. Kibana is able to access those logs. |
PR #1823 |
Some suggestions after reverting the PR. RHEL
Ubuntu
Option 2. (easier to implement) Both The logrotate config should not be concatenated to |
new PR created |
… (hitachienergy#1823) * add logrotate config for pgbouncer and filebeat input
… (hitachienergy#1823) * add logrotate config for pgbouncer and filebeat input
I found an issue with duplicate log entries for PgBouncer on Ubuntu. This is because in the filebeat configuration for PostgreSQL the path
|
The issue with duplicate log entries for PgBouncer on Ubuntu fixed in PR #1896. |
@przemyslavic Can we move this to test again? |
Fix tested. |
Is your feature request related to a problem? Please describe.
Configure pgbouncer to write logs in standard location searched by filebeat. Also configure log and log rotation to limit log size for pgbouncer.
Describe the solution you'd like
Please see how it's done for Postgres, search what needs to be logged and for how long logs should be stored.
Describe alternatives you've considered
Additional context
Same basic knowledge about log rotation and pgbouncer:
https://www.redhat.com/sysadmin/setting-logrotate
https://www.enterprisedb.com/postgres-tutorials/pgbouncer-logs-rotation-linux-and-windows-tutorial
https://www.postgresql.org/message-id/[email protected] (old, but might be useful)
The text was updated successfully, but these errors were encountered: