The "Log File Maintenance" section:
http://www.postgresql.org/docs/current/static/logfile-maintenance.html
mentions pgFouine, but that project doesn't seem to have been updated
since 2010 and appears to have been superseded by the actively maintained
pgBadger.
Patch attached.
Regards
Ian Barwick