maybe chmod 0755 'rsyslog.d'
maybe chmod 0644 'rsyslog.d/.keep_app-admin_rsyslog-0'
maybe chmod 0644 'rsyslog.d/50-default.conf'
+maybe chmod 0644 'rsyslog.d/60-fb.conf'
maybe chmod 0755 'runlevels'
maybe chmod 0755 'runlevels/boot'
maybe chmod 0755 'runlevels/default'
# own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/
# Check config syntax on startup and abort if unclean (default: off)
-#$AbortOnUncleanConfig on
+$AbortOnUncleanConfig on
###############
module(load="imklog")
# Inject "--MARK--" messages every $Interval (seconds)
-#module(load="immark" Interval="600")
+module(load="immark" Interval="3600")
# Read syslog messages from UDP
#module(load="imudp")
#module(load="imtcp")
#input(type="imtcp" port="514")
+module(load="impstats"
+ interval="43200"
+ severity="7"
+ log.syslog="off"
+ /* need to turn log stream logging off! */
+ log.file="/var/log/syslog.d/stats.log")
+
#########################
### GLOBAL DIRECTIVES ###
module(
load="builtin:omfile"
- Template="RSYSLOG_TraditionalFileFormat"
+ Template="RSYSLOG_FileFormat"
FileCreateMode="0644"
DirCreateMode="0755"
+ fileOwnerNum="0"
+ fileGroupNum="0"
+ dirOwnerNum="0"
+ dirGroupNum="0"
)
### DEFAULT ACTIONS ###
#######################
-auth,authpriv.* action(
- type="omfile"
- File="/var/log/auth.log"
- FileCreateMode="0600"
- FileOwner="root"
- FileGroup="adm"
- Sync="off"
-)
+#auth,authpriv.* action(
+# type="omfile"
+# File="/var/log/auth.log"
+# FileCreateMode="0600"
+# FileOwner="root"
+# FileGroup="adm"
+# Sync="off"
+#)
-cron.* action(
- type="omfile"
- File="/var/log/cron.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#cron.* action(
+# type="omfile"
+# File="/var/log/cron.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-daemon.* action(
- type="omfile"
- File="/var/log/daemon.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#daemon.* action(
+# type="omfile"
+# File="/var/log/daemon.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-kern.* action(
- type="omfile"
- File="/var/log/kern.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#kern.* action(
+# type="omfile"
+# File="/var/log/kern.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-lpr.* action(
- type="omfile"
- File="/var/log/lpr.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#lpr.* action(
+# type="omfile"
+# File="/var/log/lpr.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-mail.* action(
- type="omfile"
- File="/var/log/mail.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#mail.* action(
+# type="omfile"
+# File="/var/log/mail.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-news.* action(
- type="omfile"
- File="/var/log/news.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#news.* action(
+# type="omfile"
+# File="/var/log/news.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
-user.* action(
- type="omfile"
- File="/var/log/user.log"
- FileOwner="root"
- FileGroup="adm"
-)
+#user.* action(
+# type="omfile"
+# File="/var/log/user.log"
+# FileOwner="root"
+# FileGroup="adm"
+#)
*.=debug;auth,authpriv,news,mail.none action(
type="omfile"
--- /dev/null
+
+template (
+ name="facility"
+ type="string"
+ string="/var/log/syslog.d/%syslogfacility-text%.log"
+)
+
+*.* action(
+ type="omfile"
+ DynaFile="facility"
+ DirCreateMode="0755"
+ FileCreateMode="0644"
+ FileOwner="root"
+ FileGroup="adm"
+)
+
+*.* action(
+ type="omfile"
+ File="/var/log/all.log"
+ FileOwner="root"
+ FileGroup="adm"
+ Sync="off"
+)
+
+*.warn;news,mail.none action(
+ type="omfile"
+ File="/dev/tty12"
+ FileOwner="root"
+ FileGroup="root"
+)
+
+# vim: filetype=conf
--- /dev/null
+/etc/init.d/rsyslog
\ No newline at end of file
+++ /dev/null
-/etc/init.d/syslog-ng
\ No newline at end of file