1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Turning over logs with crontab?
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Turning%20over%20logs%20with%20crontab%3F&In-Reply-To=l03130300b6027da297c3%40%5B10.38.239.101%5D">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000803.html">
11 <LINK REL=
"Next" HREF=
"000805.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Turning over logs with crontab?
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Turning%20over%20logs%20with%20crontab%3F&In-Reply-To=l03130300b6027da297c3%40%5B10.38.239.101%5D"
17 TITLE=
"[IRCServices] Turning over logs with crontab?">dmircea at linux.kappa.ro
19 <I>Thu Oct
5 23:
02:
49 PDT
2000</I>
21 <LI>Previous message:
<A HREF=
"000803.html">[IRCServices] Turning over logs with crontab?
23 <LI>Next message:
<A HREF=
"000805.html">[IRCServices] known services
&quot;abuse
&quot;?
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#804">[ date ]
</a>
27 <a href=
"thread.html#804">[ thread ]
</a>
28 <a href=
"subject.html#804">[ subject ]
</a>
29 <a href=
"author.html#804">[ author ]
</a>
34 <PRE>On Thu, Oct
05,
2000 at
07:
54:
56PM +
0100, Jonathan Morton wrote:
35 ><i> >You have my vote for that. :) I'm looking at log files that run into the
36 </I>><i> >100's of megs, and it would be nice to shuffle them off to another place,
37 </I>><i> >or automate it in some fashion.
39 </I>><i> Here's my idea. At midnight, start a new logfile (eg.
40 </I>><i> services.log.YYYYMMDD), close the old one, and update a symlink
41 </I>><i> (services.log) to point to the latest logfile. After a few days' running,
42 </I>><i> the log directory would look like this:
44 </I>><i> services.log -
> ./services.log
.20001004
45 </I>><i> services.log
.20001001
46 </I>><i> services.log
.20001002
47 </I>><i> services.log
.20001003
48 </I>><i> services.log
.20001004
53 </I>><i> An optional setting to compress/move logfiles a week old (or so) would also
54 </I>><i> be helpful, I suspect.
57 No. That's why cron was built for. Just add your script there to compress
58 the logs and move/backup them wherever you like.
61 </I>><i> Just my
2 pence...
66 E-mails:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at kappa.ro
</A>,
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at roedu.net
</A>
67 WebPage:
<A HREF=
"http://taz.mania.k.ro/~dmircea/">http://taz.mania.k.ro/~dmircea/
</A>
69 ---------------------------------------------------------------
70 To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
71 with
"unsubscribe ircservices
" in the body, without the quotes.
80 <LI>Previous message:
<A HREF=
"000803.html">[IRCServices] Turning over logs with crontab?
82 <LI>Next message:
<A HREF=
"000805.html">[IRCServices] known services
&quot;abuse
&quot;?
84 <LI> <B>Messages sorted by:
</B>
85 <a href=
"date.html#804">[ date ]
</a>
86 <a href=
"thread.html#804">[ thread ]
</a>
87 <a href=
"subject.html#804">[ subject ]
</a>
88 <a href=
"author.html#804">[ author ]
</a>