pgbadger

Install command:
brew install pgbadger

Log analyzer for PostgreSQL

https://pgbadger.darold.net/

License: PostgreSQL

Formula JSON API: /api/formula/pgbadger.json

Bottle JSON API: /api/bottle/pgbadger.json

Formula code: pgbadger.rb on GitHub

Bottle (binary package) installation support provided for:

Intel monterey
big sur
catalina
mojave
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 11.6
head ⚡️ HEAD
You must configure your PostgreSQL server before using pgBadger.
Edit postgresql.conf (in $(brew --prefix)/var/postgres if you use Homebrew's
PostgreSQL), set the following parameters, and restart PostgreSQL:

    log_destination = 'stderr'
    log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
    log_statement = 'none'
    log_duration = off
    log_min_duration_statement = 0
    log_checkpoints = on
    log_connections = on
    log_disconnections = on
    log_lock_waits = on
    log_temp_files = 0
    lc_messages = 'C'

Analytics (macOS):

Installs (30 days)
pgbadger 103
Installs on Request (30 days)
pgbadger 103
Build Errors (30 days)
pgbadger 0
Installs (90 days)
pgbadger 376
Installs on Request (90 days)
pgbadger 375
Installs (365 days)
pgbadger 1,865
pgbadger --HEAD 3
Installs on Request (365 days)
pgbadger 1,856
pgbadger --HEAD 3

Analytics (Linux):

Installs (30 days)
pgbadger 2
Installs on Request (30 days)
pgbadger 2
Build Errors (30 days)
pgbadger 0
Installs (90 days)
pgbadger 2
Installs on Request (90 days)
pgbadger 2
Installs (365 days)
pgbadger 15
Installs on Request (365 days)
pgbadger 15
Fork me on GitHub