darold / pgbadger

A fast PostgreSQL Log Analyzer
http://pgbadger.darold.net/
PostgreSQL License
3.45k stars 348 forks source link

pgBouncer 1.21 logs parsing isssue #811

Closed aleszeleny closed 6 months ago

aleszeleny commented 7 months ago

Hello,

I've found the logs for pgBouncer 1.21 are not parsed properly. Partially it is due to stats format change - workaround and a test file included as attached patch: 0001-Allow-better-parsing-of-pgbouncer-1.21-logs.patch.gz But it is still an incomplete solution:

I hope the sample pgBouncer 1.21 included in the attached patch will help, potentially also the parsing of stats in the new format.

Thanks for this great tool! Aleš Zelený

darold commented 6 months ago

Commit b396f8e applies your patch with additional fixes on tests and pgbouncer session detection.

aleszeleny commented 6 months ago

Many thanks!