summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--factory-default/app-admin/syslog-ng-3.24.1/etc/logrotate.d/syslog-ng12
-rw-r--r--factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0001-send-via-syslog.conf18
-rw-r--r--factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0900-system.conf117
-rw-r--r--factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/syslog-ng.conf61
-rw-r--r--factory-default/app-admin/syslog-ng-3.24.1/etc/tmpfiles.d/100-syslog-ng.conf3
5 files changed, 211 insertions, 0 deletions
diff --git a/factory-default/app-admin/syslog-ng-3.24.1/etc/logrotate.d/syslog-ng b/factory-default/app-admin/syslog-ng-3.24.1/etc/logrotate.d/syslog-ng
new file mode 100644
index 00000000..9e10e0dd
--- /dev/null
+++ b/factory-default/app-admin/syslog-ng-3.24.1/etc/logrotate.d/syslog-ng
@@ -0,0 +1,12 @@
+/var/log/auth.log
+/var/log/cron.log
+/var/log/daemon.log
+/var/log/debug.log
+/var/log/kern.log
+/var/log/mail.log
+/var/log/messages
+/var/log/user.log {
+ postrotate
+ /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
+ endscript
+}
diff --git a/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0001-send-via-syslog.conf b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0001-send-via-syslog.conf
new file mode 100644
index 00000000..6ea9e58e
--- /dev/null
+++ b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0001-send-via-syslog.conf
@@ -0,0 +1,18 @@
+destination d_log.pants-on.net {
+ syslog("log.pants-on.net"
+ transport(tls)
+ tls(ca_dir("/etc/ssl/certs")
+ peer_verify(required-trusted)
+ sni(yes)
+ ssl-options(no-sslv2, no-sslv3, no-tlsv1, no-tlsv11)
+ ecdh-curve-list("prime256v1:secp384r1:secp521r1")
+ cipher-suite("ECDHE-RSA-AES256-GCM-SHA384")
+ allow-compress(no)
+ )
+ );
+};
+
+log {
+ source(s_local);
+ destination(d_log.pants-on.net);
+};
diff --git a/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0900-system.conf b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0900-system.conf
new file mode 100644
index 00000000..970f99f3
--- /dev/null
+++ b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/conf.d/0900-system.conf
@@ -0,0 +1,117 @@
+filter f_auth {
+ facility(auth, authpriv);
+};
+
+filter f_cron {
+ facility(cron);
+};
+
+filter f_daemon {
+ facility(daemon);
+};
+
+filter f_kernel {
+ facility(kern);
+};
+
+filter f_mail {
+ facility(mail);
+};
+
+filter f_user {
+ facility(user);
+};
+
+filter f_emerg {
+ level(emerg);
+};
+
+filter f_debug {
+ level(debug);
+};
+
+destination d_auth {
+ file("/var/log/auth.log");
+};
+
+destination d_cron {
+ file("/var/log/cron.log");
+};
+
+destination d_daemon {
+ file("/var/log/daemon.log");
+};
+
+destination d_kernel {
+ file("/var/log/kern.log");
+};
+
+destination d_mail {
+ file("/var/log/mail.log");
+};
+
+destination d_messages {
+ file("/var/log/messages");
+};
+
+destination d_user {
+ file("/var/log/user.log");
+};
+
+destination d_debug {
+ file("/var/log/debug.log");
+};
+
+log {
+ source(s_local);
+ filter(f_auth);
+ destination(d_auth);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_cron);
+ destination(d_cron);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_daemon);
+ destination(d_daemon);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_kernel);
+ destination(d_kernel);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_mail);
+ destination(d_mail);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_user);
+ destination(d_user);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ filter(f_debug);
+ destination(d_debug);
+ flags(final);
+};
+
+log {
+ source(s_local);
+ destination(d_messages);
+};
diff --git a/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/syslog-ng.conf b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/syslog-ng.conf
new file mode 100644
index 00000000..41a6eaf2
--- /dev/null
+++ b/factory-default/app-admin/syslog-ng-3.24.1/etc/syslog-ng/syslog-ng.conf
@@ -0,0 +1,61 @@
+@version: 3.24
+
+@module system-source
+
+options {
+ flush-lines (0);
+ time-reopen (10);
+ log-fifo-size (10000);
+ use-dns (no);
+ dns-cache (no);
+ use-fqdn (no);
+
+ create-dirs (yes);
+ dir-owner ("root");
+ dir-group ("wheel");
+ dir-perm (0750);
+
+ owner ("root");
+ group ("wheel");
+ perm (0640);
+
+ keep-hostname (no);
+ log-msg-size (2048);
+ chain-hostnames (no);
+
+ # The default action of syslog-ng is to log a STATS line
+ # to the file every 10 minutes. That's pretty ugly after a while.
+ # Change it to every 1 hour so you get a nice daily update of
+ # how many messages syslog-ng missed (0).
+ stats-freq(3600);
+
+ # The default action of syslog-ng is to log a MARK line
+ # to the file every 20 minutes. That's seems high for most
+ # people so turn it down to once an hour. Set it to zero
+ # if you don't want the functionality at all.
+ mark-freq(3600);
+
+ file-template (t_logformat);
+};
+
+source s_local {
+ # To collect warnings, errors and notices from syslog-ng itself
+ internal();
+
+ # Automatically collect the system-specific log messages of the host
+ # on a number of platforms
+ #
+ # Linux:
+ # unix-dgram("/dev/log");
+ # file("/proc/kmsg" program-override("kernel") flags(kernel));
+ system();
+
+ # BSD syslog protocol
+ network(transport("udp") localip(127.0.0.1) use-dns(no));
+};
+
+template t_logformat {
+ template("${ISODATE} ${FACILITY}.${PRIORITY} ${HOST} ${MSGHDR}${MSGONLY}\n");
+};
+
+@include "/etc/syslog-ng/conf.d"
diff --git a/factory-default/app-admin/syslog-ng-3.24.1/etc/tmpfiles.d/100-syslog-ng.conf b/factory-default/app-admin/syslog-ng-3.24.1/etc/tmpfiles.d/100-syslog-ng.conf
new file mode 100644
index 00000000..598d30db
--- /dev/null
+++ b/factory-default/app-admin/syslog-ng-3.24.1/etc/tmpfiles.d/100-syslog-ng.conf
@@ -0,0 +1,3 @@
+d /run/syslog-ng 0700 root root 1w -
+R /var/log - - - - -
+L /var/log - - - - /run/syslog-ng