syslog-ng: conf: fix deprecated stats_freq
The deprecated stats_freq() replaced with stats(freq(0)).
Also make comments shorter.
Fix tabs.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 37d2d69595
)
This commit is contained in:
parent
ced6158ab4
commit
d8490a4722
|
@ -1,8 +1,5 @@
|
||||||
#############################################################################
|
# Collect all local logs into a single file /var/log/messages.
|
||||||
# OpenWrt syslog-ng.conf specific file
|
# See https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edition
|
||||||
# which collects all local logs into a single file called /var/log/messages.
|
|
||||||
# More details about these settings can be found here:
|
|
||||||
# https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edition
|
|
||||||
|
|
||||||
@version: 4.4
|
@version: 4.4
|
||||||
@include "scl.conf"
|
@include "scl.conf"
|
||||||
|
@ -13,7 +10,7 @@ options {
|
||||||
keep_hostname(yes); # Enable or disable hostname rewriting.
|
keep_hostname(yes); # Enable or disable hostname rewriting.
|
||||||
log_fifo_size(256); # The number of messages that the output queue can store.
|
log_fifo_size(256); # The number of messages that the output queue can store.
|
||||||
log_msg_size(1024); # Maximum length of a message in bytes.
|
log_msg_size(1024); # Maximum length of a message in bytes.
|
||||||
stats_freq(0); # The period between two STATS messages (sent by syslog-ng, containing statistics about dropped logs) in seconds.
|
stats(freq(0)); # The period between two STATS messages (sent by syslog-ng, containing statistics about dropped logs) in seconds.
|
||||||
flush_lines(0); # How many lines are flushed to a destination at a time.
|
flush_lines(0); # How many lines are flushed to a destination at a time.
|
||||||
use_fqdn(no); # Add Fully Qualified Domain Name instead of short hostname.
|
use_fqdn(no); # Add Fully Qualified Domain Name instead of short hostname.
|
||||||
};
|
};
|
||||||
|
@ -43,7 +40,7 @@ source s_network {
|
||||||
};
|
};
|
||||||
|
|
||||||
source kernel {
|
source kernel {
|
||||||
file("/proc/kmsg" program_override("kernel"));
|
file("/proc/kmsg" program_override("kernel"));
|
||||||
};
|
};
|
||||||
|
|
||||||
destination messages {
|
destination messages {
|
||||||
|
@ -53,15 +50,13 @@ destination messages {
|
||||||
log {
|
log {
|
||||||
source(src);
|
source(src);
|
||||||
source(net);
|
source(net);
|
||||||
source(kernel);
|
source(kernel);
|
||||||
destination(messages);
|
destination(messages);
|
||||||
|
|
||||||
# uncomment this line to open port 514 to receive messages
|
# uncomment this line to open port 514 to receive messages
|
||||||
#source(s_network);
|
#source(s_network);
|
||||||
};
|
};
|
||||||
|
|
||||||
#
|
# Include any user settings last so that s/he can override or
|
||||||
# Finally, include any user settings last so that s/he can override or
|
|
||||||
# supplement all "canned" settings inherited from the distribution.
|
# supplement all "canned" settings inherited from the distribution.
|
||||||
#
|
|
||||||
@include "/etc/syslog-ng.d/" # Put any customization files in this directory
|
@include "/etc/syslog-ng.d/" # Put any customization files in this directory
|
||||||
|
|
Loading…
Reference in New Issue