Configuring syslog

Some people prefer to use syslog to collect log files. PostgreSQL offers the following configuration parameters:

# These are relevant when logging to syslog: 
#syslog_facility = 'LOCAL0' 
#syslog_ident = 'postgres' 
#syslog_sequence_numbers = on 
#syslog_split_messages = on 

syslog is pretty popular among sys admins. Fortunately, it is easy to configure. Basically, you set a facility and an identifier. If log_destination is set to syslog, this is already everything there is to do.

Get Mastering PostgreSQL 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.