patroni.yml file, I have set the PostgreSQL log parameter as log_directory: ..... There is no problem here; logs are being written to the specified directory as intended. However, the main issue is that logs written to the log_directory are sometimes also appearing in /var/log/messages. How can I fix this?
The logs appearing in /var/log/messages might be due to the system's syslog configuration. You can adjust syslog's configuration to exclude PostgreSQL logs. Typically, you'd modify the syslog configuration file (e.g., /etc/rsyslog.conf or /etc/syslog-ng/syslog-ng.conf) to prevent PostgreSQL logs from being redirected there. Try excluding the Patroni/PostgreSQL logs by adjusting the configuration to avoid the duplication.
Обсуждают сегодня