-n | --nohighlight : disable SQL code highlighting.
-N | --appname name : only report on entries for given application name
-o | --outfile filename: define the filename for the output. Default depends
- on the output format: out.html, out.txt or out.tsung.
- With Perl module JSON::XS installed, you can save
- output in JSON format too.
+ on the output format: out.html, out.txt, out.bin,
+ out.json or out.tsung.
To dump output to stdout use - as filename.
-O | --outdir path : directory where out file must be saved.
-p | --prefix string : the value of your custom log_line_prefix as
-v | --verbose : enable verbose or debug mode. Disabled by default.
-V | --version : show pgBadger version and exit.
-w | --watch-mode : only report errors just like logwatch could do.
- -x | --extension : output format. Values: text, html or tsung. Default: html
+ -x | --extension : output format. Values: text, html, binary, json or
+ tsung. Default: html
-z | --zcat exec_path : set the full path to the zcat program. Use it if
zcat or bzcat or unzip is not in your path.
--pie-limit num : pie data lower than num% will show a sum instead.
This module is optional, if you don't have PostgreSQL log in the CSV
format you don't need to install it.
- Also if you planned to save output in JSON format you need install
- Perl module JSON::XS first, this module is optional.
+ If you want to export statistics as JSON file you need an additional
+ Perl module:
+
+ JSON::XS - JSON serialising/deserialising, done correctly and fast
+
+ This module is optional, if you don't select the json output format you
+ don't need to install it.
Compressed log file format is autodetected from the file exension. If
pgBadger find a gz extension it will use the zcat utility, with a bz2
INSTALLATION
Download the tarball from github and unpack the archive as follow:
- tar xzf pgbadger-4.x.tar.gz
- cd pgbadger-4.x/
+ tar xzf pgbadger-5.x.tar.gz
+ cd pgbadger-5.x/
perl Makefile.PL
make && sudo make install
Adjust the commands following your needs.
+JSON FORMAT
+ JSON format is good for sharing data with other languages, which makes
+ it easy to integrate pgBadger's result into other monitoring tools like
+ Cacti or Graphite.
+
AUTHORS
pgBadger is an original work from Gilles Darold.
-n | --nohighlight : disable SQL code highlighting.
-N | --appname name : only report on entries for given application name
-o | --outfile filename: define the filename for the output. Default depends
- on the output format: out.html, out.txt or out.tsung.
+ on the output format: out.html, out.txt, out.bin,
+ out.json or out.tsung.
To dump output to stdout use - as filename.
-O | --outdir path : directory where out file must be saved.
-p | --prefix string : the value of your custom log_line_prefix as
-v | --verbose : enable verbose or debug mode. Disabled by default.
-V | --version : show pgBadger version and exit.
-w | --watch-mode : only report errors just like logwatch could do.
- -x | --extension : output format. Values: text, html or tsung. Default: html
+ -x | --extension : output format. Values: text, html, binary, json or
+ tsung. Default: html
-z | --zcat exec_path : set the full path to the zcat program. Use it if
zcat or bzcat or unzip is not in your path.
--pie-limit num : pie data lower than num% will show a sum instead.
This module is optional, if you don't have PostgreSQL log in the CSV format you don't
need to install it.
+If you want to export statistics as JSON file you need an additional Perl module:
+
+ JSON::XS - JSON serialising/deserialising, done correctly and fast
+
+This module is optional, if you don't select the json output format you don't
+need to install it.
+
Compressed log file format is autodetected from the file exension. If pgBadger find
a gz extension it will use the zcat utility, with a bz2 extension it will use bzcat
and if the file extension is zip or xz then the unzip or xz utilities will be used.
Download the tarball from github and unpack the archive as follow:
- tar xzf pgbadger-4.x.tar.gz
- cd pgbadger-4.x/
+ tar xzf pgbadger-5.x.tar.gz
+ cd pgbadger-5.x/
perl Makefile.PL
make && sudo make install
Adjust the commands following your needs.
+=head1 JSON FORMAT
+
+JSON format is good for sharing data with other languages, which makes it
+easy to integrate pgBadger's result into other monitoring tools like Cacti
+or Graphite.
+
=head1 AUTHORS
pgBadger is an original work from Gilles Darold.
-n | --nohighlight : disable SQL code highlighting.
-N | --appname name : only report on entries for given application name
-o | --outfile filename: define the filename for the output. Default depends
- on the output format: out.html, out.txt or out.tsung.
+ on the output format: out.html, out.txt, out.bin,
+ out.json or out.tsung.
With module JSON::XS installed, you can output file
in JSON format either.
To dump output to stdout use - as filename.
-v | --verbose : enable verbose or debug mode. Disabled by default.
-V | --version : show pgBadger version and exit.
-w | --watch-mode : only report errors just like logwatch could do.
- -x | --extension : output format. Values: text, html or tsung. Default: html
+ -x | --extension : output format. Values: text, html, bin, json or
+ tsung. Default: html
-z | --zcat exec_path : set the full path to the zcat program. Use it if
zcat or bzcat or unzip is not in your path.
--pie-limit num : pie data lower than num% will show a sum instead.