mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
syslog-ng: update to version 3.19.1
Makefile - Changed URL - Added LICENSE, CPE ID, more dependencies, postint and prerm scripts - Enabled by default JSON and HTTP (would be good to split them in future to sub-packages); Disabled java-modules, tcp wrapper - Re-ordered CONFIGURE_ARGS as they occur when executing - Resorted section: define Package/syslog-ng/install syslog-ng.conf - include scl.conf - have a more specific one than upstream (they have it really simple) - document it Patch: remove the unnecessary one Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
@@ -1,17 +1,26 @@
|
||||
@version: 3.17
|
||||
#############################################################################
|
||||
# OpenWrt syslog-ng.conf specific file
|
||||
# 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/doc/syslog-ng-open-source-edition/3.16/release-notes/global-options
|
||||
|
||||
@version: 3.19
|
||||
@include "scl.conf"
|
||||
@include "/etc/syslog-ng.d/" # Put any customization files in this directory
|
||||
|
||||
options {
|
||||
chain_hostnames(no);
|
||||
chain_hostnames(no); # Enable or disable the chained hostname format.
|
||||
create_dirs(yes);
|
||||
flush_lines(0);
|
||||
keep_hostname(yes);
|
||||
log_fifo_size(256);
|
||||
log_msg_size(1024);
|
||||
stats_freq(0);
|
||||
flush_lines(0);
|
||||
use_fqdn(no);
|
||||
keep_hostname(yes); # Enable or disable hostname rewriting.
|
||||
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.
|
||||
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.
|
||||
use_fqdn(no); # Add Fully Qualified Domain Name instead of short hostname.
|
||||
};
|
||||
|
||||
# syslog-ng gets messages from syslog-ng (internal) and from /dev/log
|
||||
|
||||
source src {
|
||||
internal();
|
||||
unix-dgram("/dev/log");
|
||||
@@ -21,6 +30,19 @@ source net {
|
||||
udp(ip(0.0.0.0) port(514));
|
||||
};
|
||||
|
||||
source s_network {
|
||||
default-network-drivers(
|
||||
# NOTE: TLS support
|
||||
#
|
||||
# the default-network-drivers() source driver opens the TLS
|
||||
# enabled ports as well, however without an actual key/cert
|
||||
# pair they will not operate and syslog-ng would display a
|
||||
# warning at startup.
|
||||
#
|
||||
#tls(key-file("/path/to/ssl-private-key") cert-file("/path/to/ssl-cert"))
|
||||
);
|
||||
};
|
||||
|
||||
source kernel {
|
||||
file("/proc/kmsg" program_override("kernel"));
|
||||
};
|
||||
@@ -34,8 +56,7 @@ log {
|
||||
source(net);
|
||||
source(kernel);
|
||||
destination(messages);
|
||||
|
||||
# uncomment this line to open port 514 to receive messages
|
||||
#source(s_network);
|
||||
};
|
||||
|
||||
# put any customization files in this directory
|
||||
@include "/etc/syslog-ng.d/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user