summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-30 04:54:33 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-30 04:54:33 +0000
commit608fb9f77cc6b769be80d6ac9647a8143c2c3f4f (patch)
tree32aa565e7d58b22ef52135c97ee864301c2eaa3b /app-admin/metalog/files
parentVersion Bump. Added ~amd64 keyword. (diff)
downloadhistorical-608fb9f77cc6b769be80d6ac9647a8143c2c3f4f.tar.gz
historical-608fb9f77cc6b769be80d6ac9647a8143c2c3f4f.tar.bz2
historical-608fb9f77cc6b769be80d6ac9647a8143c2c3f4f.zip
Pull updates from upstream metalog.conf and improve our own sections #132794.
Package-Manager: portage-2.1.2_rc4-r2
Diffstat (limited to 'app-admin/metalog/files')
-rw-r--r--app-admin/metalog/files/metalog.conf113
1 files changed, 80 insertions, 33 deletions
diff --git a/app-admin/metalog/files/metalog.conf b/app-admin/metalog/files/metalog.conf
index ce30692eab33..04532784a0f8 100644
--- a/app-admin/metalog/files/metalog.conf
+++ b/app-admin/metalog/files/metalog.conf
@@ -1,25 +1,43 @@
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.conf,v 1.7 2006/12/30 04:07:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.conf,v 1.8 2006/12/30 04:54:33 vapier Exp $
#
# Sample Metalog configuration file
-maxsize = 100000 # bytes
-maxtime = 86400 # seconds (86400 = 1 day)
+maxsize = 1048576 # size in bytes
+maxtime = 86400 # time in seconds (86400 = 1 day)
maxfiles = 5 # num files per dir
-Kernel messages :
+# This will capture all of the internal log messages that metalog itself
+# generates. If you use any "command" options below, you will want this
+# as metalog generates a lot of status messages whenever it executes a
+# command and children processes exit.
+#Metalog :
+#
+# program = "metalog"
+# logidr = "/var/log/metalog"
+# break = 1
- facility = "kern"
- logdir = "/var/log/kernel"
+# Uncomment and adjust the following lines according to your console logging
+# needs. If you want to only output things that were not caught by other log
+# sections, move this to the end of the file.
+#
+# Hint: you can change the log console in /etc/conf.d/metalog
+#
+#console logging :
+#
+# facility = "*"
+# command = "/sbin/consolelog.sh"
-Crond :
+Everything important :
- facility = "cron"
- logdir = "/var/log/crond"
+ facility = "*"
+ minimum = 6
+ logdir = "/var/log/everything"
-Dudes firewalled by IPTrap :
+Everything very important :
- program = "iptrap"
- logdir = "/var/log/iptrap"
+ facility = "*"
+ minimum = 1
+ logdir = "/var/log/critical"
Password failures :
@@ -29,63 +47,92 @@ Password failures :
logdir = "/var/log/pwdfail"
# command = "/usr/local/sbin/mail_pwd_failures.sh"
+Kernel messages :
+
+ facility = "kern"
+ logdir = "/var/log/kernel"
+ break = 1
+
+Crond :
+
+ facility = "cron"
+ logdir = "/var/log/crond"
+ break = 1
+
FTP Server :
- program = "pure-ftpd"
+ facility = "ftp"
logdir = "/var/log/ftpd"
+ break = 1
+
+News Server :
+
+ facility = "news"
+ logdir = "/var/log/news"
+ break = 1
+
+Dudes firewalled by IPTrap :
+
+ program = "iptrap"
+ logdir = "/var/log/iptrap"
+ break = 1
SSH Server :
program = "sshd"
logdir = "/var/log/sshd"
+ break = 1
Telnet :
program = "login"
logdir = "/var/log/telnet"
+ break = 1
Imap :
program = "/usr/sbin/imapd"
logdir = "/var/log/imap"
+ break = 1
POP Toaster :
program = "/usr/sbin/ipop3d"
logdir = "/var/log/pop"
+ break = 1
#Add authenticated IP addresses for SMTP relaying :
# program = "/usr/sbin/ipop3d"
# regex = "Login.+nmsgs="
# command = "/usr/local/sbin/add_pop_address.sh"
+# break = 1
Mail :
facility = "mail"
+ neg_regex= "starting daemon"
logdir = "/var/log/mail"
+ break = 1
-Everything important :
+Exim :
- facility = "*"
- minimum = 6
- logdir = "/var/log/everything"
+ program_regex = "^exim"
+ logdir = "/var/log/exim"
+ break = 1
-Everything very important :
+Ppp :
+ program_regex = "^ppp"
+ logdir = "/var/log/ppp"
+ break = 1
- facility = "*"
- minimum = 1
- logdir = "/var/log/critical"
+Postgresql :
+ program_regex = "^postmaster"
+ program_regex = "^postgres"
+ logdir = "/var/log/postgres"
+ break = 1
-#
-#Uncomment and adjust the following lines to
-#your needs to enable console logging
-#
-# Hint: you can change the device to which
-# should be logged in /etc/conf.d/metalog
-#
-
-#console logging :
-#
-# facility = "*"
-# command = "/sbin/consolelog.sh"
+Apache :
+ program_regex = "^httpd"
+ logdir = "/var/log/http"
+ break = 1