|
@@ -1,4 +1,5 @@
|
|
|
-# /etc/rsyslog.conf Configuration file for rsyslog.
|
|
|
+#
|
|
|
+# /etc/rsyslog.conf Configuration file for rsyslog v3. (Salt managed)
|
|
|
#
|
|
|
# For more information see
|
|
|
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
|
|
@@ -9,7 +10,7 @@
|
|
|
#################
|
|
|
|
|
|
$ModLoad imuxsock # provides support for local system logging
|
|
|
-$ModLoad imklog # provides kernel logging support
|
|
|
+$ModLoad imklog # provides kernel logging support (previously done by rklogd)
|
|
|
#$ModLoad immark # provides --MARK-- message capability
|
|
|
|
|
|
# provides UDP syslog reception
|
|
@@ -26,7 +27,7 @@ $ModLoad imklog # provides kernel logging support
|
|
|
###########################
|
|
|
|
|
|
#
|
|
|
-# Use traditional timestamp format.
|
|
|
+# Use default timestamp format.
|
|
|
# To enable high precision timestamps, comment out the following line.
|
|
|
#
|
|
|
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
|
@@ -37,13 +38,15 @@ $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
|
|
$FileOwner root
|
|
|
$FileGroup adm
|
|
|
$FileCreateMode 0640
|
|
|
-$DirCreateMode 0755
|
|
|
-$Umask 0022
|
|
|
|
|
|
#
|
|
|
-# Where to place spool and state files
|
|
|
+# Include all config files in /etc/rsyslog-early.d/
|
|
|
#
|
|
|
-$WorkDirectory /var/spool/rsyslog
|
|
|
+$IncludeConfig /etc/rsyslog-early.d/*.conf
|
|
|
+
|
|
|
+# Mirror all remaining logs to logserver
|
|
|
+
|
|
|
+*.* @10.132.251.43
|
|
|
|
|
|
#
|
|
|
# Include all config files in /etc/rsyslog.d/
|
|
@@ -55,14 +58,6 @@ $IncludeConfig /etc/rsyslog.d/*.conf
|
|
|
#### RULES ####
|
|
|
###############
|
|
|
|
|
|
-#
|
|
|
-# reduce dhcpd logging
|
|
|
-#
|
|
|
-:msg, contains, "DHCPDISCOVER" ~
|
|
|
-:msg, contains, "DHCPOFFER" ~
|
|
|
-:msg, contains, "DHCPREQUEST" ~
|
|
|
-:msg, contains, "DHCPACK" ~
|
|
|
-
|
|
|
#
|
|
|
# First some standard log files. Log by facility.
|
|
|
#
|
|
@@ -127,5 +122,3 @@ daemon.*;mail.*;\
|
|
|
news.err;\
|
|
|
*.=debug;*.=info;\
|
|
|
*.=notice;*.=warn |/dev/xconsole
|
|
|
-
|
|
|
-*.* @10.132.251.43
|