All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joachim Wiberg <troglobit@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH 1/1] package/sysklogd: update default syslog.conf to match upstream
Date: Sat, 30 Jan 2021 14:52:03 +0100	[thread overview]
Message-ID: <20210130135203.159451-2-troglobit@gmail.com> (raw)
In-Reply-To: <20210130135203.159451-1-troglobit@gmail.com>

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
---
 package/sysklogd/syslog.conf | 69 +++++++++++++++++++++++++++++++++---
 1 file changed, 64 insertions(+), 5 deletions(-)

diff --git a/package/sysklogd/syslog.conf b/package/sysklogd/syslog.conf
index 411bd645ff..8e4f9e2059 100644
--- a/package/sysklogd/syslog.conf
+++ b/package/sysklogd/syslog.conf
@@ -1,9 +1,68 @@
-# /etc/syslog.conf - Configuration file for syslogd
+# /etc/syslog.conf - Configuration file for syslogd(8)
+#
+# For information about the format of this file, see syslog.conf(5)
+#
 
-auth,authpriv.*		/var/log/auth.log
-*.*;auth,authpriv.none	/var/log/messages
-user.*			/var/log/user.log
+#
+# First some standard log files.  Log by facility.
+#
+auth,authpriv.*			 /var/log/auth.log
+*.*;auth,authpriv.none		-/var/log/syslog
 
-*.emerg			*
+#cron.*				/var/log/cron.log
+#daemon.*			-/var/log/daemon.log
+kern.*				-/var/log/kern.log
+#lpr.*				-/var/log/lpr.log
+mail.*				-/var/log/mail.log
+#user.*				-/var/log/user.log
 
+#
+# Logging for the mail system.  Split it up so that
+# it is easy to write scripts to parse these files.
+#
+#mail.info			-/var/log/mail.info
+#mail.warn			-/var/log/mail.warn
+mail.err			 /var/log/mail.err
+#mail.*;mail.!=info		-/var/log/mail
+#mail,news.=info 		-/var/log/info
+
+# The tcp wrapper loggs with mail.info, we display all
+# the connections on tty12
+#
+#mail.=info			/dev/tty12
+
+#
+# Some "catch-all" log files.
+#
+#*.=debug;\
+#	auth,authpriv.none;\
+#	news.none;mail.none	-/var/log/debug
+*.=info;*.=notice;*.=warn;\
+	auth,authpriv.none;\
+	cron,daemon.none;\
+	mail,news.none		-/var/log/messages
+
+# Store all critical eventes, except kernel logs in critical
+#
+#*.=crit;kern.none		/var/log/critical
+
+# Example of sending events to remote syslog server.
+# All events from notice and above, except auth, authpriv
+# and any kernel message are sent to server finlandia in
+# RFC5424 formatted output.
+#
+#*.notice;auth,authpriv.none;
+#	kern.none\		@finlandia	;RFC5424
+
+# Emergencies are sent to anyone logged in
+#
+*.=emerg			*
+
+# Priority alert and above are sent to the operator
+#
+#*.alert				root,joey
+
+#
+# Include all config files in /etc/syslog.d/
+#
 include /etc/syslog.d/*.conf
-- 
2.25.1

  reply	other threads:[~2021-01-30 13:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30 13:52 [Buildroot] [RFC PATCH 0/1] package/sysklogd: proposal to update default syslog.conf Joachim Wiberg
2021-01-30 13:52 ` Joachim Wiberg [this message]
2021-01-31 22:13 ` Thomas Petazzoni
2021-01-31 22:58   ` Joachim Wiberg
2021-02-01  8:04     ` Thomas Petazzoni
2021-02-01  9:43       ` Peter Korsgaard
2021-02-01 10:16         ` Joachim Wiberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210130135203.159451-2-troglobit@gmail.com \
    --to=troglobit@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.