[Logwatch-Devel] logfile conf patches for Solaris - messages and maillog

David Baldwin david.baldwin at anu.edu.au
Wed Sep 14 20:29:04 MST 2005


originally sent this from the wrong account and it got blocked - logwatch-devel 
mailman cancel link doesn't work though.

Anyway, below are logfile conf patches for messages and maillog for Solaris 
against latest CVS:
messages in /var/adm not /var/log by default
/var/log/maillog doesn't exist, mail logs to /var/log/syslog instead.

David.

--- logwatch/conf/logfiles/maillog.conf 2005-02-25 04:05:18.000000000 +1100
+++ /etc/log.d/conf/logfiles/maillog.conf       2005-08-04 17:26:10.000000000 +1000
@@ -12,12 +12,14 @@

  # What actual file?  Defaults to LogPath if not absolute path....
  LogFile = maillog
+LogFile = syslog

  # If the archives are searched, here is one or more line
  # (optionally containing wildcards) that tell where they are...
  # Note: if these are gzipped, you need to end with a .gz even if
  #       you use wildcards...
  Archive = maillog.*
+Archive = syslog.*
  Archive = archiv/maillog.*

  # Expand the repeats (actually just removes them now)
diff -r -u logwatch/conf/logfiles/messages.conf 
/etc/log.d/conf/logfiles/messages.conf
--- logwatch/conf/logfiles/messages.conf        2005-02-25 04:05:18.000000000 +1100
+++ /etc/log.d/conf/logfiles/messages.conf      2005-08-04 17:29:46.000000000 +1000
@@ -12,12 +12,14 @@

  # What actual file?  Defaults to LogPath if not absolute path....
  LogFile = messages
+LogFile = /var/adm/messages

  # If the archives are searched, here is one or more line
  # (optionally containing wildcards) that tell where they are...
  # Note: if these are gzipped, you need to end with a .gz even if
  #       you use wildcards...
  Archive = messages.*
+Archive = /var/adm/messages.*
  Archive = archiv/messages.*

  # Expand the repeats (actually just removes them now)

-- 
=====================================================================+
David Baldwin                   mailto:David.Baldwin at anu.edu.au      |
Supercomputer Facility          URL: http://www.anu.edu.au/~u8611156 |
II Services, Huxley Building    Ph:  {intl+61+2 | (02)} 6125 0321    |
Australian National University  FAX: {intl+61+2 | (02)} 6125 8199    |
Canberra ACT 0200, AUSTRALIA  *======================================+


More information about the Logwatch-Devel mailing list