pgBadger

pgBadger is an open-source PostgreSQL log analyzing tool that generates HTML reports from your PostgreSQL log file.