|
From: Grant P. <gp...@th...> - 2005-10-11 13:01:59
|
Looks like I will give logrotate a call! Thanks all! -Grant ----- Original Message ----- From: "Jamie Cameron" <jca...@we...> To: <web...@li...> Sent: Tuesday, October 11, 2005 8:22 AM Subject: Re: [webmin-l] Logrotate - Newsyslog Hi Grant, That file format looks completely different to the one used by logrotate unfortunately, so at the moment there is no way you can use Webmin to configure newsyslog. However, you could install logrotate instead, which looks to be more powerful, and is supported by Webmin. - Jamie -----Original Message----- From: "Grant Peel" <gp...@th...> Subj: Re: [webmin-l] Logrotate - Newsyslog Date: Mon 10 Oct 2005 11:47 pm Size: 3K To: <web...@li...> Here is a sample of newsyslog.conf ... it is read by the newsyslog utility which is triggered each 1 minute via cron. fields 5 and 6 are the rules, and determine if the log is rotated. 'syslog' is the c utility that actually writes the logfile, rules for that are in /etc/syslog.conf. # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /var/log/cron 600 14 * $D00 Z /var/log/amd.log 644 7 100 * Z /var/log/auth.log 600 14 * $D00 Z /var/log/kerberos.log 600 7 100 * Z /var/log/lpd-errs 644 7 100 * Z /var/log/maillog 640 14 * $D00 Z /var/log/sendmail.st 640 10 * 168 B /var/log/messages 644 14 * $D00 Z /var/log/all.log 600 14 * $D00 Z /var/log/slip.log root:network 640 3 100 * Z I don't know what logrotate looks like, never used it! -Grant ----- Original Message ----- From: "Jamie Cameron" <jca...@we...> To: <web...@li...> Sent: Monday, October 10, 2005 9:16 AM Subject: Re: [webmin-l] Logrotate - Newsyslog > Hi Grant, > > Does newsyslog use the exact same config file format as logrotate? If > so, then perhaps I could update the logrotate module .. otherwise, it > would be touger. > > Actually, from the name it sounds like newsyslog is a replacement for > syslog, rather than for logrotate.. > > - Jamie > > On Mon, 2005-10-10 at 22:17, Grant Peel wrote: >> Hi Jamie, >> >> Is there any change we can coerce you into updateting the Logrotate >> module >> so it will work with FreeBSD's newsyslog utility. It is very close to >> working, but it has no --version switch, so logrotate craps out when it >> try >> to get it (-v actually means verbose). >> >> -Grant >> >> Logrotate output ... >> >> Failed to get the version of logrotate with the command >> /usr/sbin/newsyslog -v : >> /var/log/cron <3Z>: --> will trim at Mon Oct 10 00:00:00 2005 >> /var/log/amd.log <3Z>: does not exist. >> /var/log/kerberos.log <3Z>: does not exist. >> ...Manpage - FreeBSD 5.4 - newsyslogdefiant# man newsyslogFormatting >> page, >> please wait...Done.NEWSYSLOG(8) FreeBSD System Manager's >> Manual >> NEWSYSLOG(8)NAME newsyslog -- maintain system log files to manageable >> sizesSYNOPSIS newsyslog [-CFnrsv] [-R tagname] [-a directory] [-f >> config_file] [file ...]DESCRIPTION The newsyslog >> utility >> should be scheduled to run periodically by cron(8). When it is >> executed >> it archives log files if necessary. If a log file is determined to >> require archiving, newsyslog rearranges the files so that ``logfile'' >> is >> empty, ``logfile.0'' has the last period's logs in it, ``logfile.1'' >> has >> the next to last period's logs in it, and so on, up to a >> user-specified >> number of archived logs. Optionally the archived logs can be >> compressed >> to save space. A log can be archived for three reasons: 1. >> It is larger than the configured size (in kilobytes). 2. A >> configured number of hours have elapsed since the log was >> last archived. 3. This is the specific configured hour for >> rotation of the log. The granularity of newsyslog is dependent on how >> often it is scheduled to run by cron(8). Since the program is quite >> fast, it may be scheduled to run every hour without any ill effects, --- message truncated --- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |