2f92fc7f31
Rework and clean up the package, split off various bindings into separate packages. Add SMF support. Major features and improvements introduced in major releases since 3.2. 3.7 - OpenSSL is now a required dependency for syslog-ng. - Java-destination driver ported from syslog-ng-incubator. - Python language support is ported from syslog-ng incubator. - New Java destination drivers - New Parsers 3.6 - PCRE is now a required dependency of syslog-ng. - Threaded mode is now enabled by default. 3.5 - Multi-line support - STOMP destination - Redis destination - Template type hinting - Template options honored everywhere - Support for unit suffixes in the configuration - The Incubator project 3.4 - New plugins: AMQP & SMTP destinations, JSON parser. - New parsers for patterndb: HOSTNAME, EMAIL, PCRE and LLADDR. - It is now possible to control what db-parser() sees as its input via it's new template() option. - value-pairs() gained support for programmatically rewriting key names in bulk, via the rekey() method. - The network() driver is introduced, unifying and extending tcp(), udp(), syslog(), unix-dgram() and unix-stream(). The old drivers are still available, but - Support for junctions & channels were added, which improve the flexibility of the syslog-ng configuration language. 3.3 - multi-core/CPU scaling: the new multi-threaded architecture allows syslog-ng to scale into the 800k msg/sec region. - MongoDB support: using MongoDB instead of SQL is faster and allows better representation of log data. - JSON support: using the $(format-json) template function it is now possible to construct JSON (JavaScript Object Notation) output for log messages. - A number of enhancements all over the place: SQL, patterndb. - The default ports have changed. syslog-ng is using the standard
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
$NetBSD: patch-ac,v 1.3 2015/10/29 16:34:13 fhajny Exp $
|
|
|
|
# add NetBSD support and fix some paths
|
|
|
|
--- contrib/syslog2ng.orig 2014-12-15 14:48:45.000000000 +0000
|
|
+++ contrib/syslog2ng
|
|
@@ -5,18 +5,24 @@
|
|
# Translator from syslog.conf to syslog-ng.conf
|
|
# by Jonathan W. Marks <j-marks@uiuc.edu>
|
|
#
|
|
-# Rev 2
|
|
+# Rev 2.1
|
|
|
|
BEGIN {
|
|
# Handle the various platforms- determine proper log device
|
|
- "/bin/uname -s" | getline sysname;
|
|
- close("/bin/uname -s");
|
|
+ "@UNAME@ -s" | getline sysname;
|
|
+ close("@UNAME@ -s");
|
|
if (sysname == "SunOS") {
|
|
LOGDEVTYPE="sun-streams";
|
|
+ LOGDEVPATH="/dev/log";
|
|
} else if (sysname == "AIX") {
|
|
LOGDEVTYPE="unix-dgram";
|
|
+ LOGDEVPATH="/dev/log";
|
|
} else if (sysname == "Linux") {
|
|
LOGDEVTYPE="unix-stream";
|
|
+ LOGDEVPATH="/dev/log";
|
|
+ } else if (sysname == "NetBSD") {
|
|
+ LOGDEVTYPE="unix-dgram";
|
|
+ LOGDEVPATH="/var/run/log";
|
|
} else {
|
|
print "!!! Unsupported system: " sysname ".";
|
|
exit 1;
|
|
@@ -29,7 +35,7 @@ BEGIN {
|
|
|
|
print \
|
|
"source local {\n" \
|
|
-" " LOGDEVTYPE "(\"/dev/log\");\n" \
|
|
+" " LOGDEVTYPE "(\"" LOGDEVPATH "\");\n" \
|
|
" udp(ip(0.0.0.0) port(514));\n" \
|
|
" internal();\n" \
|
|
"};\n";
|