Good morning.
I use freebsd 12 and Postgresql 11.5.
I can't get the messages on the log.
here there is my postgresql.conf
i tried to change local0 to LOCAL0, i set "debug 5" to have a huge amount of log, but nothing happens.
Here there is syslog.conf
None of these log files are filled (except messages.log).
If i set postgres to put the messages on stderr, i see them.
The rc.conf contains the enable of syslogd (although it works even without).
Syslogs is loaded, and put messages on /var/log/messages.
All log files are present and with the right authorization (if i rename those files, i see error messages on /var/log/messages).
i tried to use the default and the freebsd-manual conf.
I followed the guides and i have seen https://forums.freebsd.org/threads/syslog-and-postgresql.46082/, i copied all the snippets in that thread, and still doesn't work.
and there is no log.
.
Can you help me?
thanks in advance
I use freebsd 12 and Postgresql 11.5.
I can't get the messages on the log.
here there is my postgresql.conf
Code:
listen_addresses = 'localhost,*'
port = 5432
max_connections = 15
shared_buffers = 24MB
log_destination = 'syslog'
syslog_facility = 'local0'
syslog_ident = 'postgres'
log_min_messages = debug5
log_min_error_statement = info
datestyle = 'iso, ymd'
lc_messages = 'it_IT.UTF-8'
lc_monetary = 'it_IT.UTF-8'
lc_numeric = 'it_IT.UTF-8'
lc_time = 'it_IT.UTF-8'
default_text_search_config = 'pg_catalog.italian'
i tried to change local0 to LOCAL0, i set "debug 5" to have a huge amount of log, but nothing happens.
Here there is syslog.conf
Code:
*.err;kern.warning;auth.notice;mail.crit /var/log/messages
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
ftp.info /var/log/xferlog
cron.* /var/log/cron
*.=debug /var/log/debug.log
*.emerg *
daemon.* /var/log/daemon.log
local0.* /var/log/local0.log
!postgres
*.* /var/log/postgresql.log
!ppp
*.* /var/log/ppp.log
None of these log files are filled (except messages.log).
If i set postgres to put the messages on stderr, i see them.
The rc.conf contains the enable of syslogd (although it works even without).
Syslogs is loaded, and put messages on /var/log/messages.
All log files are present and with the right authorization (if i rename those files, i see error messages on /var/log/messages).
i tried to use the default and the freebsd-manual conf.
I followed the guides and i have seen https://forums.freebsd.org/threads/syslog-and-postgresql.46082/, i copied all the snippets in that thread, and still doesn't work.
and there is no log.
.
Can you help me?
thanks in advance