1 #############################################################################
2 # OpenWrt syslog-ng.conf specific file
3 # which collects all local logs into a single file called /var/log/messages.
4 # More details about these settings can be found here:
5 # https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edition
11 chain_hostnames(no); # Enable or disable the chained hostname format.
13 keep_hostname(yes); # Enable or disable hostname rewriting.
14 log_fifo_size(256); # The number of messages that the output queue can store.
15 log_msg_size(1024); # Maximum length of a message in bytes.
16 stats_freq(0); # The period between two STATS messages (sent by syslog-ng, containing statistics about dropped logs) in seconds.
17 flush_lines(0); # How many lines are flushed to a destination at a time.
18 use_fqdn(no); # Add Fully Qualified Domain Name instead of short hostname.
21 # syslog-ng gets messages from syslog-ng (internal) and from /dev/log
25 unix-dgram("/dev/log");
33 default-network-drivers(
36 # the default-network-drivers() source driver opens the TLS
37 # enabled ports as well, however without an actual key/cert
38 # pair they will not operate and syslog-ng would display a
41 #tls(key-file("/path/to/ssl-private-key") cert-file("/path/to/ssl-cert"))
46 file("/proc/kmsg" program_override("kernel"));
49 destination messages {
50 file("/var/log/messages");
57 destination(messages);
59 # uncomment this line to open port 514 to receive messages
64 # Finally, include any user settings last so that s/he can override or
65 # supplement all "canned" settings inherited from the distribution.
67 @include "/etc/syslog-ng.d/" # Put any customization files in this directory