Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from ireuben/master

Fix config examples to use variables for user and db
  • Loading branch information...
commit 5f1ac1166274e1e584d7902ca6a7222f8367f08d 2 parents bf1778d + 195ef4b
@gleu gleu authored
Showing with 6 additions and 4 deletions.
  1. +4 −4 README
  2. +2 −0  pgbadger
View
8 README
@@ -19,19 +19,19 @@ With 'stderr' log format, log line prefix must be at least:
Log line prefix could add user and database name as follow:
- log_line_prefix = '%t [%p]: [%l-1] user=username,db=dbname '
+ log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
or for syslog log file format:
- log_line_prefix = 'user=username,db=dbname '
+ log_line_prefix = 'user=%u,db=%d '
Log line prefix for stderr output could also be:
- log_line_prefix = '%t [%p]: [%l-1] db=dbname,user=username'
+ log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
or for syslog output:
- log_line_prefix = 'db=dbname,user=username'
+ log_line_prefix = 'db=%d,user=%u '
Additional informations that could be collected need logging activation into postgresql.conf:
View
2  pgbadger
@@ -12,6 +12,8 @@
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] '
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] user=username,db=dbname'
# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] db=dbname,user=username'
+# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d '
+# Log line prefix should be : log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
#
# Additional informations that could be collected and reported
#
Please sign in to comment.
Something went wrong with that request. Please try again.