]> granicus.if.org Git - pgbadger/commit
Allow log parsing without any log_line_prefix and extend it to be defined by the...
authorDarold <gilles@darold.net>
Sun, 15 Apr 2012 20:16:55 +0000 (22:16 +0200)
committerDarold <gilles@darold.net>
Sun, 15 Apr 2012 20:16:55 +0000 (22:16 +0200)
commit9c311258a24d9cef9bf2c72757bfd5a4a91584d1
treeeceb6726b7f04996b408efcc6d9ed0ca5ef4c099
parenta769b272acc0dc181c7e70fac7808cf8abb929e0
Allow log parsing without any log_line_prefix and extend it to be defined by the user. Custom log_line prefix can be parsed using user defined regex with command line option
--regex-db and --regex-user. For exemple the default regex of pgbadger to parse user and db name from log_line_prefix can be written like this: pgbadger -l mylogfile.log  --regex-user="user=([^,]*)," --regex-db="db=([^,]*)"
pgbadger