-b | --begin datetime : start date/time for the data to be parsed in log.
-e | --end datetime : end date/time for the data to be parsed in log.
-q | --quiet : don't print anything to stdout.
- -p | --progress : show a progress bar, quiet mode is automatically
+ -p | --progress show a progress bar, quiet mode is automatically
enabled with this option.
- --pie-limit num : pie data lower than num% will show a sum instead.
-w | -watch-mode : only report errors just like logwatch could do.
+ -z | --zcat exec_path : set the full path to the zcat program. Use it if
+ zcat is not on your path or you want to use gzcat.
+ --pie-limit num : pie data lower than num% will show a sum instead.
--exclude-query regex : any query matching the given regex will be excluded
from the report- for example: "^(VACUUM|COMMIT)".
You can use this option multiple times.
30 23 * * 1 /usr/bin/pgbadger -q -w /var/log/postgresql.log -o /var/reports/pg_errors.html
- This suppose that your log file and HTML report are also rotated every
- week.
+ This suppose that your log file and HTML report are also rotated every week.
DESCRIPTION
pgBadger is a PostgreSQL log analyzer built for speed with fully
pgBadger is able to autodetect your log file format (syslog, stderr or
csvlog). It is designed to parse huge log files, as well as gzip
- compressed files. See a complete list of features below.
+ compressed file. See a complete list of features below.
FEATURE
pgBadger reports everything about your SQL queries:
All charts are zoomable and can be saved as PNG images.
-REQUIREMENTS
+REQUIREMENT
PgBadger comes as a single Perl script- you do not need anything else
than a modern Perl distribution. Charts are rendered using a Javascript
library so you don't need anything. Your browser will do all the work.
log_line_prefix = '%t [%p]: [%l-1] '
- Log line prefix could add user and database name as follow:
+ Log line prefix could add user and database name as follows:
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
be parsed by pgBadger.
INSTALLATION
- Download the tarball from github and unpack the archive as follows:
+ Download the tarball from github and unpack the archive as follow:
tar xzf pgbadger-1.x.tar.gz
cd pgbadger-1.x/
-q | --quiet : don't print anything to stdout.
-p | --progress show a progress bar, quiet mode is automatically
enabled with this option.
- --pie-limit num : pie data lower than num% will show a sum instead.
-w | -watch-mode : only report errors just like logwatch could do.
+ -z | --zcat exec_path : set the full path to the zcat program. Use it if
+ zcat is not on your path or you want to use gzcat.
+ --pie-limit num : pie data lower than num% will show a sum instead.
--exclude-query regex : any query matching the given regex will be excluded
from the report- for example: "^(VACUUM|COMMIT)".
You can use this option multiple times.
-q | --quiet : don't print anything to stdout.
-p | --progress : show a progress bar, quiet mode is automaticaly
enabled with this option.
- --pie-limit num : pie data lower than num% will show a sum instead.
-w | -watch-mode : only report errors just like logwatch could do.
+ -z | --zcat exec_path : set the full path to the zcat program. Use it if
+ zcat is not on your path or you want to use gzcat.
+ --pie-limit num : pie data lower than num% will show a sum instead.
--exclude-query regex : any query matching the given regex will be excluded
from the report. For example: "^(VACUUM|COMMIT)"
you can use this option multiple time.