Initial version of syslog module.
This commit is contained in:
parent
90312c8d28
commit
f8d8abe1ae
6 changed files with 200 additions and 0 deletions
9
syslog/templates/rsyslog.conf.erb
Normal file
9
syslog/templates/rsyslog.conf.erb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Use traditional timestamp format
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
||||
|
||||
# provides --MARK-- message capability
|
||||
$ModLoad immark
|
||||
# Provides kernel logging support (previously done by rklogd)
|
||||
$ModLoad imklog
|
||||
# Provides support for local system logging (e.g. via logger command)
|
||||
$ModLoad imuxsock
|
26
syslog/templates/syslog.conf.CentOS.erb
Normal file
26
syslog/templates/syslog.conf.CentOS.erb
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Log all kernel messages to the console.
|
||||
# Logging much else clutters up the screen.
|
||||
#kern.* /dev/console
|
||||
|
||||
# Log anything (except mail) of level info or higher.
|
||||
# Don't log private authentication messages!
|
||||
*.info;mail.none;authpriv.none;cron.none /var/log/messages
|
||||
|
||||
# The authpriv file has restricted access.
|
||||
authpriv.* /var/log/secure
|
||||
|
||||
# Log all the mail messages in one place.
|
||||
mail.* -/var/log/maillog
|
||||
|
||||
|
||||
# Log cron stuff
|
||||
cron.* /var/log/cron
|
||||
|
||||
# Everybody gets emergency messages
|
||||
*.emerg *
|
||||
|
||||
# Save news errors of level crit and higher in a special file.
|
||||
uucp,news.crit /var/log/spooler
|
||||
|
||||
# Save boot messages also to boot.log
|
||||
local7.* /var/log/boot.log
|
26
syslog/templates/syslog.conf.Fedora.erb
Normal file
26
syslog/templates/syslog.conf.Fedora.erb
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Log all kernel messages to the console.
|
||||
# Logging much else clutters up the screen.
|
||||
#kern.* /dev/console
|
||||
|
||||
# Log anything (except mail) of level info or higher.
|
||||
# Don't log private authentication messages!
|
||||
*.info;mail.none;authpriv.none;cron.none /var/log/messages
|
||||
|
||||
# The authpriv file has restricted access.
|
||||
authpriv.* /var/log/secure
|
||||
|
||||
# Log all the mail messages in one place.
|
||||
mail.* -/var/log/maillog
|
||||
|
||||
|
||||
# Log cron stuff
|
||||
cron.* /var/log/cron
|
||||
|
||||
# Everybody gets emergency messages
|
||||
*.emerg *
|
||||
|
||||
# Save news errors of level crit and higher in a special file.
|
||||
uucp,news.crit /var/log/spooler
|
||||
|
||||
# Save boot messages also to boot.log
|
||||
local7.* /var/log/boot.log
|
22
syslog/templates/syslog.conf.OpenBSD.erb
Normal file
22
syslog/templates/syslog.conf.OpenBSD.erb
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none /var/log/messages
|
||||
kern.debug;syslog,user.info /var/log/messages
|
||||
auth.info /var/log/authlog
|
||||
authpriv.debug /var/log/secure
|
||||
cron.info /var/cron/log
|
||||
daemon.info /var/log/daemon
|
||||
ftp.info /var/log/xferlog
|
||||
lpr.debug /var/log/lpd-errs
|
||||
mail.info /var/log/maillog
|
||||
#uucp.info /var/log/uucp
|
||||
|
||||
# Uncomment this line to send "important" messages to the system
|
||||
# console: be aware that this could create lots of output.
|
||||
#*.err;auth.notice;authpriv.none;kern.debug;mail.crit /dev/console
|
||||
|
||||
# Uncomment this to have all messages of notice level and higher
|
||||
# as well as all authentication messages sent to root.
|
||||
#*.notice;auth.debug root
|
||||
|
||||
# Everyone gets emergency messages.
|
||||
*.emerg *
|
8
syslog/templates/syslog.conf.client.erb
Normal file
8
syslog/templates/syslog.conf.client.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
*.* <% if operatingsystem != "OpenBSD" %>-<% end %>/var/log/all.log
|
||||
mark.* <% if operatingsystem != "OpenBSD" %>-<% end %>/var/log/all.log
|
||||
|
||||
<% if has_variable?('syslog_server') -%>
|
||||
*.* @<%= syslog_server %>
|
||||
mark.* @<%= syslog_server %>
|
||||
<% end -%>
|
Loading…
Add table
Add a link
Reference in a new issue