mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
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>
This commit is contained in:
committed by
Josef Schlehofer
parent
9d509b7433
commit
37d2d69595
@@ -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.
|
||||||
};
|
};
|
||||||
@@ -60,8 +57,6 @@ log {
|
|||||||
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user