From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29798 invoked from network); 17 Oct 2021 12:36:19 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2021 12:36:19 -0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by 4ess; Sun Oct 17 08:29:44 -0400 2021 Received: (Authenticated sender: rgl@antares-labs.eu) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 77255100002 for <9front@9front.org>; Sun, 17 Oct 2021 12:29:38 +0000 (UTC) Date: Sun, 17 Oct 2021 12:29:35 +0000 From: =?ISO-8859-1?Q?Rodrigo_G=2E_L=F3pez?= To: 9front@9front.org In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: enhancement-oriented full-stack SOAP over JSON template service Subject: [9front] =?UTF-8?Q?Re=3A_=5B9front=5D_Dealing_with_log_files=E2=80=A6?= Reply-To: 9front@9front.org Precedence: bulk as others mentioned, chmod +t and a cron task with your own rotation would = do it=2E if you want them stored along with the worm, with cwfs dumps usual= ly happen at 5am, so you could compress, move and truncate them, just befor= e this happens, and with whatever resolution you want=E2=80=94 daily, weekl= y, etc=2E=E2=80=94for the =2Elog=2Egz files=2E i used to do this on an rc-httpd serving machine, but i no longer keep any= logs=2E something like: #!/bin/rc mv /sys/log/^(www www=2Ewip) >/sys/log/www chmod +t /sys/log/www /sys/log/archive/www=2E`{date -n}=2Egz rm /sys/log/www=2Ewip -rodri On October 16, 2021 8:06:24 PM UTC, igor@9lab=2Eorg wrote: >What is the Plan9 way of dealing with growing log files such as >/sys/log/www and others? Is there something similar to multilog=C2=B9 or >logrotate=C2=B2? > >Thanks in advance for any advice=2E > >Cheers, >Igor > >=C2=B9=E2=80=A6(https://cr=2Eyp=2Eto/daemontools/multilog=2Ehtml) >=C2=B2=E2=80=A6(https://github=2Ecom/logrotate/logrotate) >