Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/rsyslog8: update pkg-message and add sample config file
Upstream changes mean that the advice formerly given in pkg-message to modify the default /etc/syslog.conf file as the basis of a new ${PREFIX}/etc/rsyslog.conf are now less useful and confusing to end users. Therefore, update the pkg-message accordingly, and install a sample config file which should duplicated the functionality of the base syslog.conf. PR: 260158 Reported by: Mark Johnston
- Loading branch information
1 parent
85b9b42
commit 2a74583
Showing
4 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# Consult the rsyslog.conf(5) manpage, and the comprehensive on-line | ||
# documentation at | ||
# https://www.rsyslog.com/doc/v8-stable/configuration/index.html | ||
# | ||
# Derived from | ||
# https://cgit.freebsd.org/src/tree/usr.sbin/syslogd/syslog.conf | ||
|
||
module(load="immark") # provides --MARK-- message capability | ||
module(load="imuxsock") # provides support for local system logging | ||
module(load="imklog") # kernel logging | ||
|
||
*.err;kern.warning;auth.notice;mail.crit /dev/console | ||
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages | ||
security.* /var/log/security | ||
auth.info;authpriv.info /var/log/auth.log | ||
mail.info /var/log/maillog | ||
cron.* /var/log/cron | ||
|
||
if $programname != "devd" then { | ||
*.=debug /var/log/debug.log | ||
*.emerg action(type="omusrmsg" users="*") | ||
daemon.info /var/log/daemon.log | ||
} | ||
|
||
# uncomment this to log all writes to /dev/console to /var/log/console.log | ||
# touch /var/log/console.log and chmod it to mode 600 before it will work | ||
#console.info /var/log/console.log | ||
|
||
# uncomment this to enable logging of all log messages to /var/log/all.log | ||
# touch /var/log/all.log and chmod it to mode 600 before it will work | ||
#*.* /var/log/all.log | ||
|
||
# uncomment this to enable logging to a remote loghost named loghost | ||
#*.* @loghost | ||
|
||
# uncomment these if you're running inn | ||
# news.crit /var/log/news/news.crit | ||
# news.err /var/log/news/news.err | ||
# news.notice /var/log/news/news.notice | ||
|
||
# Uncomment this if you wish to see messages produced by devd | ||
# if $programname == "devd" then { | ||
# *.>=notice /var/log/devd.log | ||
# } | ||
|
||
include(file="/usr/local/etc/rsyslog.d/*.conf" mode="optional") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters