* [Summary] Log file rotation?
@ 2001-11-19 9:07 Xavier Mertens
0 siblings, 0 replies; only message in thread
From: Xavier Mertens @ 2001-11-19 9:07 UTC (permalink / raw)
To: tru64-unix-managers
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
>
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-11-19 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-19 9:07 [Summary] Log file rotation? Xavier Mertens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox