]> granicus.if.org Git - pgbadger/commitdiff
Fix config examples to use variables for user and db
authorIsaac Reuben <isaac@shotgunsoftware.com>
Sat, 19 May 2012 04:00:27 +0000 (21:00 -0700)
committerIsaac Reuben <isaac@shotgunsoftware.com>
Sat, 19 May 2012 04:00:27 +0000 (21:00 -0700)
README
pgbadger

diff --git a/README b/README
index 35161da2064dab79df84289519bc1b0bb66f07e0..c2832cb84d4833befeb9d70579170da5370cda7f 100755 (executable)
--- a/README
+++ b/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:
 
index 9fc96a5205f08f6d0b14922f644d7386520c9cda..a60b466afb66145a0f2f3cb7f2356da572a8c351 100755 (executable)
--- a/pgbadger
+++ b/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
 #