-d | --dbname database : only report what concern the given database
-e | --end datetime : end date/time for the data to be parsed in log.
-f | --format logtype : possible values: syslog,stderr,csv. Default: stderr
- -g | --graph : generate graphs using the Flotr2 javascript library
+ -G | --nograph : disable graphs on HTML output. Enable by default.
-h | --help : show this message and exit.
-i | --ident name : programname used as syslog ident. Default: postgres
-l | --last-parsed file: allow incremental log parsing by registering the
-q | --quiet : don't print anything to stdout.
-s | --sample number : number of query sample to store/display. Default: 3
-t | --top number : number of query to store/display. Default: 20
+ -T | --title string : change title of the HTML page report.
-u | --dbuser username : only report what concern the given user
-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 or html. Default: html
-z | --zcat exec_path : set the full path to the zcat program. Use it if
-d | --dbname database : only report what concern the given database
-e | --end datetime : end date/time for the data to be parsed in log.
-f | --format logtype : possible values: syslog,stderr,csv. Default: stderr
- -g | --graph : generate graphs using the Flotr2 javascript library
+ -G | --nograph : disable graphs on HTML output. Enable by default.
-h | --help : show this message and exit.
-i | --ident name : programname used as syslog ident. Default: postgres
-l | --last-parsed file: allow incremental log parsing by registering the
my $sample = 0;
my $extension = '';
my $maxlength = 0;
-my $graph = 0;
+my $graph = 1;
+my $nograph = 0;
my $debug = 0;
my $nohighlight = 0;
my $from = '';
"d|dbname=s" => \$dbname,
"e|end=s" => \$to,
"f|format=s" => \$format,
- "g|graph!" => \$graph,
+ "G|nograph!" => \$nograph,
"h|help!" => \$help,
"i|ident=s" => \$ident,
"l|last-parsed=s" => \$last_parsed,
# Remove graph support if output is not html
$graph = 0 if ($extension ne 'html');
+$graph = 0 if ($nograph);
my $end_top = $top - 1;
-d | --dbname database : only report what concern the given database
-e | --end datetime : end date/time for the data to be parsed in log.
-f | --format logtype : possible values: syslog,stderr,csv. Default: stderr
- -g | --graph : generate graphs using the Flotr2 javascript library
+ -G | --nograph : disable graphs on HTML output. Enable by default.
-h | --help : show this message and exit.
-i | --ident name : programname used as syslog ident. Default: postgres
-l | --last-parsed file: allow incremental log parsing by registering the