Skip to content

Commit 13716d9

Browse files
authored
chore: disable pgbouncer logfile output (#648)
1 parent 0f1e393 commit 13716d9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[Definition]
22
failregex = ^.+@<HOST>:.+password authentication failed$
3+
journalmatch = _SYSTEMD_UNIT=pgbouncer.service

ansible/files/fail2ban_config/jail-pgbouncer.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ enabled = true
33
port = 6543
44
protocol = tcp
55
filter = pgbouncer
6-
logpath = /var/log/pgbouncer.log
7-
maxretry = 3
6+
backend = systemd[journalflags=1]
7+
maxretry = 3

ansible/files/pgbouncer_config/pgbouncer.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
;;; Administrative settings
4444
;;;
4545

46-
logfile = /var/log/pgbouncer.log
46+
;logfile = /var/log/pgbouncer.log
4747
pidfile = /var/run/pgbouncer/pgbouncer.pid
4848

4949
;;;

0 commit comments

Comments
 (0)