1 # Collect all local logs into a single file /var/log/messages.
2 # See https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edition
8 chain_hostnames(no); # Enable or disable the chained hostname format.
10 keep_hostname(yes); # Enable or disable hostname rewriting.
11 log_fifo_size(256); # The number of messages that the output queue can store.
12 log_msg_size(1024); # Maximum length of a message in bytes.
13 stats(freq(0)); # The period between two STATS messages (sent by syslog-ng, containing statistics about dropped logs) in seconds.
14 flush_lines(0); # How many lines are flushed to a destination at a time.
15 use_fqdn(no); # Add Fully Qualified Domain Name instead of short hostname.
18 # syslog-ng gets messages from syslog-ng (internal) and from /dev/log
22 unix-dgram("/dev/log");
30 default-network-drivers(
33 # the default-network-drivers() source driver opens the TLS
34 # enabled ports as well, however without an actual key/cert
35 # pair they will not operate and syslog-ng would display a
38 #tls(key-file("/path/to/ssl-private-key") cert-file("/path/to/ssl-cert"))
43 file("/proc/kmsg" program_override("kernel"));
46 destination messages {
47 file("/var/log/messages");
54 destination(messages);
56 # uncomment this line to open port 514 to receive messages
60 # Include any user settings last so that s/he can override or
61 # supplement all "canned" settings inherited from the distribution.
62 @include "/etc/syslog-ng.d/" # Put any customization files in this directory