From b450dc6c46ad109f15c0892cb4edc4478f01b34b Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 3 Dec 2018 12:30:03 +0000 Subject: [PATCH] - log postgresql to separate directory with defined name as log filename --- syslog-ng.conf | 2 +- syslog-ng.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syslog-ng.conf b/syslog-ng.conf index a6069d4..59cb7ff 100644 --- a/syslog-ng.conf +++ b/syslog-ng.conf @@ -47,7 +47,7 @@ destination d_user { file("/var/log/user"); }; destination d_ppp { file("/var/log/ppp"); }; destination d_ftp { file("/var/log/xferlog"); }; destination d_audit { file("/var/log/audit"); }; -destination d_postgres { file("/var/log/pgsql"); }; +destination d_postgres { file("/var/log/postgresql/${PROGRAM}.log"); }; destination d_freshclam { file("/var/log/freshclam.log"); }; destination d_shorewall { file("/var/log/shorewall"); }; destination d_console { usertty("root"); }; diff --git a/syslog-ng.spec b/syslog-ng.spec index 7957819..75590aa 100644 --- a/syslog-ng.spec +++ b/syslog-ng.spec @@ -37,7 +37,7 @@ Summary(pl.UTF-8): Syslog-ng - systemowy demon logujący nowej generacji Summary(pt_BR.UTF-8): Daemon de log nova geração Name: syslog-ng Version: 3.18.1 -Release: 1 +Release: 2 License: GPL v2+ with OpenSSL exception Group: Daemons Source0: https://github.com/balabit/syslog-ng/archive/%{name}-%{version}.tar.gz -- 2.46.0