[Summary] Log file rotation?

From: Xavier Mertens <xavier_at_be.wanadoo.com>
Date: Mon, 19 Nov 2001 10:07:37 +0100 (CET)

Thanks to all of you!

>From the syslog.conf man page:

"The syslogd daemon automatically creates a new date directory every 24
hours and also when you boot the system. The current directory is a link to
the latest date directory. To get the latest logs, you only need to refer-
ence the /var/adm/syslog.dated/current directory."

Also, 'kill -HUP <syslog_pid>' performs the file rotation.
I just added this command in the root's crontab.

Regards,
Xavier

--
Xavier Mertens    &Wanadoo Belgium - A subsidiary of France Telecom
Head of NOC
XM1-6BONE         "Contrary to popular belief, Unix is userfriendly. It just
XM3-RIPE           happens to be selective about who it makes friends with"
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sb20293A2058554E494Csnlbxq'|dc
On Mon, 19 Nov 2001, Xavier Mertens wrote:
> Hi Admins,
> 
> This is a stupid question, but where is defined the daily log file
> rotation on a Tru64 system?
> 
> I just found in the root's crontab:
> 
> 40 4 * * * find /var/adm/syslog.dated/* -depth -type d -ctime +7 -exec rm -rf {} \;
> 
> Regards,
> Xavier
> 
> --
> Xavier Mertens    &Wanadoo Belgium - A subsidiary of France Telecom
> Head of NOC
> XM1-6BONE         "Contrary to popular belief, Unix is userfriendly. It just
> XM3-RIPE           happens to be selective about who it makes friends with"
> 
> echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sb20293A2058554E494Csnlbxq'|dc
> 
> 
Received on Mon Nov 19 2001 - 09:08:32 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT