From 31314bf0927b002ea04164223e4da907317f00c5 Mon Sep 17 00:00:00 2001 From: Paulo Tada Date: Tue, 1 Sep 2015 08:43:50 -0300 Subject: [PATCH] Configuring postgresql to send log to syslog server --- cookbooks/postgresql/templates/centos/postgresql.conf.erb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/cookbooks/postgresql/templates/centos/postgresql.conf.erb b/cookbooks/postgresql/templates/centos/postgresql.conf.erb index ed1097e..aef6f80 100644 --- a/cookbooks/postgresql/templates/centos/postgresql.conf.erb +++ b/cookbooks/postgresql/templates/centos/postgresql.conf.erb @@ -18,6 +18,7 @@ log_truncate_on_rotation = on # If on, an existing log file log_rotation_age = 1d # Automatic rotation of logfiles will log_rotation_size = 0 # Automatic rotation of logfiles will log_timezone = 'UTC' +log_destination = 'syslog' # Send logs to syslog server datestyle = 'iso, mdy' timezone = 'UTC' lc_messages = 'en_US.UTF-8' # locale for system error message -- libgit2 0.21.2