]>
granicus.if.org Git - pgbadger/log
Gilles Darold [Tue, 2 Jul 2019 20:49:50 +0000 (22:49 +0200)]
Hide message of use of default out file when --rebuild is used.
Gilles Darold [Thu, 27 Jun 2019 13:29:46 +0000 (15:29 +0200)]
Add extra newline to usage() output to not bread POD documentation at make time.
Gilles Darold [Thu, 27 Jun 2019 13:15:24 +0000 (15:15 +0200)]
Reapply --exclude-client option description in documention. Thanks to Christoph Berg for the report.
Gilles Darold [Tue, 25 Jun 2019 05:55:45 +0000 (07:55 +0200)]
Updata ChangeLog and version to 11.0
Gilles Darold [Tue, 25 Jun 2019 05:54:44 +0000 (07:54 +0200)]
Fix basics test.
Gilles Darold [Mon, 24 Jun 2019 09:19:15 +0000 (11:19 +0200)]
Fix basics tests with new data format.
Gilles Darold [Sat, 22 Jun 2019 20:45:00 +0000 (22:45 +0200)]
Add a warning about version and skip loading incompatible binary file.
Gilles Darold [Fri, 21 Jun 2019 20:35:08 +0000 (22:35 +0200)]
Update code formatter to pgFormatter 4.0.
Gilles Darold [Wed, 19 Jun 2019 06:56:58 +0000 (08:56 +0200)]
Remove a comment.
Gilles Darold [Tue, 18 Jun 2019 14:27:03 +0000 (16:27 +0200)]
Regroup cursor related query (DECLARE,CLOSE,FETCH,MOVE) to CURSOR query type.
Gilles Darold [Tue, 18 Jun 2019 08:22:58 +0000 (10:22 +0200)]
When a query is > 10Kb we first limit size of all constant string parameters
to 30 charaters and then the query is truncated to 10Kb. This prevent
pgbadger to waste time/hang with very long queries when inserting bytea
for example. The 10Kb limit can be controled witgh the --maxlength
command line parameter.
Gilles Darold [Mon, 17 Jun 2019 20:12:46 +0000 (22:12 +0200)]
Fix test with logplex log format.
Gilles Darold [Mon, 17 Jun 2019 19:54:08 +0000 (21:54 +0200)]
Fix pgbadger hang on Windows OS. Thanks to JMLessard for the report.
Gilles Darold [Mon, 17 Jun 2019 14:42:29 +0000 (16:42 +0200)]
Update tools/pgbadger_tools script to be compatible with new binary file format in pgBadger v11.
Gilles Darold [Sun, 16 Jun 2019 21:14:01 +0000 (23:14 +0200)]
Allow collect of bind query generating temporary files. Until now only
temporary file statistics was reported but not the query generating
these file. This collect is possible only if log_connection and
log_disconnection are activated in postgresql.conf. Thanks to Ildefonso
Camargo for the feature request.
Gilles Darold [Sun, 16 Jun 2019 19:40:11 +0000 (21:40 +0200)]
Fix auto detection of timezone. Thanks to massimosala for the fix.
Gilles Darold [Sat, 15 Jun 2019 17:51:37 +0000 (19:51 +0200)]
Remove some remaining graph when --nograph is used
Gilles Darold [Sat, 15 Jun 2019 15:08:39 +0000 (17:08 +0200)]
Force use of .txt extension when --normalized-only is used.
Gilles Darold [Sat, 15 Jun 2019 08:39:00 +0000 (10:39 +0200)]
Add --exclude-client name command line option to be able to exclude
log entries for the specified client ip. Can be used multiple time.
Gilles Darold [Fri, 14 Jun 2019 09:45:58 +0000 (11:45 +0200)]
Fix report of auto vacuum/analyze in logplex format. Thanks to Konrad zichul for the report.
Gilles Darold [Thu, 13 Jun 2019 13:44:01 +0000 (15:44 +0200)]
Fix a case where the progress bar pipe can still be called on Windows.
Gilles Darold [Thu, 13 Jun 2019 07:38:45 +0000 (09:38 +0200)]
Fix use of progress bar on Windows operating system. Thanks to JMLessard for the report.
Gilles Darold [Mon, 10 Jun 2019 09:12:21 +0000 (11:12 +0200)]
Cosmetic changes and generalization of {'t_timestamp'} if time from log is forced to a timezone.
Gilles Darold [Mon, 10 Jun 2019 08:48:32 +0000 (10:48 +0200)]
Merge pull request #509 from fluca1978/use_t_time_variable
Use a `$prefix_vars{'t_time'} to store the log time.
Luca Ferrari [Mon, 10 Jun 2019 07:55:30 +0000 (09:55 +0200)]
Use a `$prefix_vars{'t_time'} to store the log time.
This is related to PR #501 and comment
<https://github.com/darold/pgbadger/pull/501#issuecomment-
500052105 >.
Gilles Darold [Mon, 10 Jun 2019 07:17:57 +0000 (09:17 +0200)]
Update usage and documentation.
Gilles Darold [Mon, 10 Jun 2019 07:12:54 +0000 (09:12 +0200)]
Merge pull request #508 from fluca1978/remove_perl_from_documentation
Remove perl from documentation
Luca Ferrari [Mon, 10 Jun 2019 06:57:49 +0000 (08:57 +0200)]
Remove 'perl` from `pgbadger` invocations into the program.
Makes the documentation line shorter.
Luca Ferrari [Mon, 10 Jun 2019 06:54:52 +0000 (08:54 +0200)]
Remove `perl` from `pgbadger` invocation.
See comment <https://github.com/darold/pgbadger/pull/504#issuecomment-
500051470 >
This makes lines a little shorter.
Gilles Darold [Fri, 7 Jun 2019 21:56:05 +0000 (23:56 +0200)]
Merge pull request #501 from fluca1978/align_statements
Use begin and end with times without date
Gilles Darold [Fri, 7 Jun 2019 21:53:47 +0000 (23:53 +0200)]
Merge pull request #506 from crashALot/patch1
Minor readme edit
Gilles Darold [Fri, 7 Jun 2019 21:53:13 +0000 (23:53 +0200)]
Merge pull request #504 from fluca1978/fix_readme
Fix readme
crashALot [Wed, 5 Jun 2019 02:50:49 +0000 (22:50 -0400)]
Minor README edit
Added some very minor spelling and grammar fixes to the readme file.
Luca Ferrari [Tue, 4 Jun 2019 10:21:15 +0000 (12:21 +0200)]
Put single sentence on a single Perl module.
Luca Ferrari [Tue, 4 Jun 2019 10:14:30 +0000 (12:14 +0200)]
Change 'there is' to 'there are' since talking about 'options'.
Luca Ferrari [Tue, 4 Jun 2019 10:14:09 +0000 (12:14 +0200)]
Align title to following text.
Luca Ferrari [Tue, 4 Jun 2019 10:12:39 +0000 (12:12 +0200)]
Reowrd 'chapter' in 'section'.
Luca Ferrari [Tue, 4 Jun 2019 10:08:07 +0000 (12:08 +0200)]
Fix benchmark statement.
Luca Ferrari [Tue, 4 Jun 2019 06:29:08 +0000 (08:29 +0200)]
Merge branch 'master' of github.com:darold/pgbadger into align_statements
Luca Ferrari [Tue, 4 Jun 2019 06:27:10 +0000 (08:27 +0200)]
Remove wrong comment preventing the program to exit if no logs are there.
See discussion
<https://github.com/darold/pgbadger/pull/501#issuecomment-
498476989 >
I should have introduced this comment to prevent the program to exit while
testing.
Luca Ferrari [Tue, 4 Jun 2019 06:25:18 +0000 (08:25 +0200)]
Use of internal values for hours, minutes and seconds.
See discussion
<https://github.com/darold/pgbadger/pull/501#issuecomment-
498476989 >
Gilles Darold [Tue, 4 Jun 2019 00:17:54 +0000 (02:17 +0200)]
Merge pull request #500 from fluca1978/fix_ssh_remote_file
Fix remote paths when using SSH.
Luca Ferrari [Mon, 3 Jun 2019 10:04:05 +0000 (12:04 +0200)]
Merge branch 'master' of github.com:darold/pgbadger into align_statements
Merge with commit
e2e85807ef6bc3d6e1a748c2e52437659c70c665 .
Luca Ferrari [Mon, 3 Jun 2019 09:21:28 +0000 (11:21 +0200)]
Merge upstream master branch.
Gilles Darold [Mon, 3 Jun 2019 02:42:56 +0000 (04:42 +0200)]
Add report per database support to incremental mode. In this mode there
will be a sub directory per database with dedicated incremental reports
and time based sub directory storing the binary statistic data.
Add -H, --html-dir option to be able to set a different path where HTML
report must be written in incremental mode. Binary files remain on directory
defined with -O, --outdir option.
Gilles Darold [Sun, 2 Jun 2019 13:45:06 +0000 (15:45 +0200)]
Add -E | --explode option to explode the main report into one report
per database. Global information not related to a database are added
to the postgres database report.
Update regression test to works with new structure introduced with the
per database report feature.
Luca Ferrari [Fri, 24 May 2019 15:00:30 +0000 (17:00 +0200)]
Changed the if..else about hour and time begin/end parameters.
Also added some more logging and improved the online error message to
support hours.
Luca Ferrari [Fri, 24 May 2019 13:21:26 +0000 (15:21 +0200)]
Update POD documentation.
Luca Ferrari [Fri, 24 May 2019 13:03:56 +0000 (15:03 +0200)]
Update documentation to reflect the begin/end time.
Luca Ferrari [Fri, 24 May 2019 13:02:39 +0000 (15:02 +0200)]
Fix fractional seconds in all begin and end parameters.
Luca Ferrari [Fri, 24 May 2019 12:48:54 +0000 (14:48 +0200)]
Implement begin/end hours without the date.
See #495
The idea is to check the '--begin' and '--end' parameters to see if they
represent only a time instead of a timestamp, and then accept them placing the
value into '$from_hour' or '$to_hour' internal variables.
Then, in 'skip_unwanted_lines' check if the time of the line is not between
the limits, similarly to what is done with the timestamp check.
Return the same values as the timestamp check.
Luca Ferrari [Fri, 24 May 2019 12:23:49 +0000 (14:23 +0200)]
Align return statements when checking timestamps.
Seems there is no reason for extra curly braces on the $to case.
Luca Ferrari [Fri, 24 May 2019 12:04:41 +0000 (14:04 +0200)]
Fix remote paths when using SSH.
When specifying a directory instead of a remote file, the program aborts
with a message like:
% pgbadger ssh://postgres@pghost//postgres/data/log/
FATAL: can't get size of remote file,
please check what's going wrong with command:
ssh postgres@pghost "ls -l postgresql-Fri.log"
The problem is that the set_file_list function does not include the path
on the remote host, managing each file path as relative. Therefore
now there is an addition of $dirs before pushing the path to the @lfiles array.
However, this is due only when there is a directory, that is when the number
of remote files on each function invocation is not equal at one.
Gilles Darold [Wed, 22 May 2019 07:10:22 +0000 (09:10 +0200)]
Fix documentation URL. Thanks to Kara Mansel for the report.
Gilles Darold [Tue, 21 May 2019 09:07:25 +0000 (11:07 +0200)]
Fix parsing of auto_explain.
Darold Gilles [Sun, 21 Apr 2019 08:45:25 +0000 (10:45 +0200)]
Add more information about -U option that can be used multiple time. Thanks to Douglas J Hunley for the report.
Gilles Darold [Fri, 19 Apr 2019 10:28:33 +0000 (12:28 +0200)]
Apply conflicting pull request #493 of Pierre Giraud.
Gilles Darold [Fri, 19 Apr 2019 10:06:14 +0000 (12:06 +0200)]
Merge pull request #491 from pgiraud/html_validation
Fix some invalid HTML issues
Gilles Darold [Fri, 19 Apr 2019 10:05:56 +0000 (12:05 +0200)]
Merge pull request #490 from pgiraud/hash_position
Hash position
Pierre GIRAUD [Wed, 17 Apr 2019 07:13:47 +0000 (09:13 +0200)]
Fix not allowed nesting elements
Pierre GIRAUD [Wed, 17 Apr 2019 07:12:17 +0000 (09:12 +0200)]
Fix table number of columns in colspan
Pierre GIRAUD [Wed, 17 Apr 2019 06:42:27 +0000 (08:42 +0200)]
Fix invalid DOM, <tr> in <div>
Pierre GIRAUD [Tue, 16 Apr 2019 13:53:08 +0000 (15:53 +0200)]
Make sure panel header is visible on navigation click
Pierre GIRAUD [Tue, 16 Apr 2019 08:35:30 +0000 (10:35 +0200)]
Harmonization of panels spacing
Less space lost
Gilles Darold [Tue, 16 Apr 2019 13:06:11 +0000 (15:06 +0200)]
Merge pull request #489 from pgiraud/auto_scroll
Update source file - See #485
Gilles Darold [Tue, 16 Apr 2019 13:05:48 +0000 (15:05 +0200)]
Merge pull request #488 from pgiraud/main_container_margin
Update source file - See #483
Pierre GIRAUD [Tue, 16 Apr 2019 12:47:53 +0000 (14:47 +0200)]
Update source file - See #485
Pierre GIRAUD [Tue, 16 Apr 2019 12:39:30 +0000 (14:39 +0200)]
Update source file - See #483
Gilles Darold [Tue, 16 Apr 2019 12:27:48 +0000 (14:27 +0200)]
Merge pull request #485 from pgiraud/auto_scroll
WIP - Scroll to top when clicking on top menu item
Gilles Darold [Tue, 16 Apr 2019 12:27:30 +0000 (14:27 +0200)]
Merge pull request #483 from pgiraud/main_container_margin
WIP - Margin on top of body
Gilles Darold [Tue, 16 Apr 2019 12:26:59 +0000 (14:26 +0200)]
Merge pull request #487 from darold/revert-486-hash_position
Revert "WIP - Hash position"
Gilles Darold [Tue, 16 Apr 2019 12:24:55 +0000 (14:24 +0200)]
Merge pull request #484 from pgiraud/top_queries_heading
Fix top queries header inconsistency
Gilles Darold [Tue, 16 Apr 2019 12:23:58 +0000 (14:23 +0200)]
Revert "WIP - Hash position"
Gilles Darold [Tue, 16 Apr 2019 12:22:31 +0000 (14:22 +0200)]
Merge pull request #486 from pgiraud/hash_position
WIP - Hash position
Pierre GIRAUD [Tue, 16 Apr 2019 09:04:12 +0000 (11:04 +0200)]
Make sure panel header is visible on navigation click
Pierre GIRAUD [Tue, 16 Apr 2019 08:35:30 +0000 (10:35 +0200)]
Harmonization of panels spacing
Less space lost
Pierre GIRAUD [Tue, 16 Apr 2019 08:58:04 +0000 (10:58 +0200)]
Scroll to top when clicking on top menu item
Pierre GIRAUD [Tue, 16 Apr 2019 08:37:37 +0000 (10:37 +0200)]
Fix top queries header inconsistency
Pierre GIRAUD [Tue, 16 Apr 2019 08:37:05 +0000 (10:37 +0200)]
Margin on top of body
Avoids <br> hack
Gilles Darold [Tue, 16 Apr 2019 07:14:09 +0000 (09:14 +0200)]
Merge pull request #482 from darold/pgiraud-patch-1
Fix markdown format
Pierre GIRAUD [Tue, 16 Apr 2019 07:03:28 +0000 (09:03 +0200)]
Fix markdown format
Darold Gilles [Sun, 7 Apr 2019 08:05:59 +0000 (10:05 +0200)]
Add regression test for logplex format.
Darold Gilles [Fri, 15 Mar 2019 12:35:13 +0000 (13:35 +0100)]
Add support to Heroku's PostgreSQL logplex format. You should be able to
parse these logs as follow:
heroku logs -p postgres | pgbadger -f logplex -o heroku.html -
or if you have already saved the output to a file:
pgbadger heroku.log
The logplex format is autodectected like any other supported format.
pgBadger understand the following default log_line_prefix:
database = %d connection_source = %r sql_error_code = %e
or simply:
sql_error_code = %e
Let me know if there's any other default log_line_prefix. The prefix
can always be set using the -p | --prefix pgbadger option:
pgbadger --p 'base = %d source = %r sql_state = %e' heroku.log
for example.
Thanks to Anthony Sosso for the feature request.
Gilles Darold [Fri, 22 Feb 2019 10:01:16 +0000 (11:01 +0100)]
Fix pgbadger help on URI use.
Gilles Darold [Fri, 22 Feb 2019 09:28:29 +0000 (10:28 +0100)]
Fix broken wildcard use in ssh URI introduced in previous patch. Thanks to Tobias Bussmann for the report.
Gilles Darold [Thu, 21 Feb 2019 21:17:53 +0000 (22:17 +0100)]
Allow URI with space in path to log file. Thanks to Tobias Bussmann for the report.
Gilles Darold [Thu, 21 Feb 2019 20:39:47 +0000 (21:39 +0100)]
Merge pull request #478 from tbussmann/patch-1
Fix URI samples in documentation
Tobias Bussmann [Thu, 21 Feb 2019 20:31:55 +0000 (21:31 +0100)]
Fix URI samples in documentation
Gilles Darold [Tue, 19 Feb 2019 12:19:19 +0000 (13:19 +0100)]
Merge pull request #474 from credativ/test-duration
t/02_basics.t: Don't fail if syslog test takes more than 10s
Christoph Berg [Tue, 19 Feb 2019 11:45:41 +0000 (12:45 +0100)]
t/02_basics.t: Don't fail if syslog test takes more than 10s
The syslog test checks if the result is exactly 24281 bytes, but if the
run takes 10s or more, the result is longer.
Generated on Tue Feb 19 12:24:58 2019
Log file: t/fixtures/pg-syslog.1.bz2
Parsed 59,921 log entries in 19s <-- PROBLEM HERE
Log start from 2019-02-11 13:15:39 to 2019-02-11 13:16:26
Gilles Darold [Thu, 14 Feb 2019 10:29:41 +0000 (11:29 +0100)]
Update ChangeLog and version to 10.3
Gilles Darold [Mon, 11 Feb 2019 13:17:40 +0000 (14:17 +0100)]
Remove extra space at end of line.
Gilles Darold [Mon, 11 Feb 2019 13:14:49 +0000 (14:14 +0100)]
Add minimal test to syslog parser.
Gilles Darold [Mon, 11 Feb 2019 12:50:11 +0000 (13:50 +0100)]
Fix a call to autodetect_format().
Gilles Darold [Sun, 10 Feb 2019 11:01:04 +0000 (12:01 +0100)]
Fix statistics reports when there a filter on database, user, client or
application is requested. Some queries was not reported.
Gilles Darold [Fri, 8 Feb 2019 10:46:38 +0000 (11:46 +0100)]
Merge branch 'master' of github.com:darold/pgbadger
Gilles Darold [Fri, 8 Feb 2019 10:43:34 +0000 (11:43 +0100)]
Fix autodetection of pg>=10 defauilt log line prefix.
Gilles Darold [Fri, 8 Feb 2019 07:42:30 +0000 (08:42 +0100)]
Fix autodetection of log file with "non standard" log line prefix. If
--prefix specify %t | %m | %n and %p or %c, set format to stderr. Thanks
to Alex Danvy for the report.
Gilles Darold [Wed, 23 Jan 2019 15:51:55 +0000 (16:51 +0100)]
Merge pull request #471 from madtibo/truncate_error_statement
Truncate error statement
madtibo [Wed, 23 Jan 2019 13:34:49 +0000 (14:34 +0100)]
truncate statement when maxlength is used