Article View: alt.privacy.anon-server
Article #283378Re: Purging Those Pesky Mail Logs
From: Jack Ryan
Date: Mon, 11 Jul 2016 03:09
Date: Mon, 11 Jul 2016 03:09
27 lines
1527 bytes
1527 bytes
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I found that this small routine purges mail logs > daily via cron. It's easily expanded to include > other log files as required. In its current form it purges > > syslog > mail.log > auth.log > mail.info > > First place this simple script into: > > File: /usr/sbin/./clear-logs > > rm /var/log/auth.log && touch /var/log/auth.log ; rm /var/log/mail.log && touch /var/log/mail.log; > \ > rm /var/log/syslog && touch /var/log/syslog && rm /var/log/mail.info && touch > /var/log/mail.info > /etc/init.d/rsyslog restart > > (Time as required) Create and save a simple cron job with crontab -e > > 00 23 * * * /usr/sbin/./clear-logs As someone said, if you don't want to keep logs, just don't create them in the first place.
Technical Details
Message-ID:
<67d10ea7a3a4c5b675a8005a7514237e@remailer.cpunk.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<5225d8932ac7ad947454404e0a884cc8@remailer.org.uk>Show Full Headers
Complete Article Headers
Message-ID: <67d10ea7a3a4c5b675a8005a7514237e@remailer.cpunk.us> Subject: Re: Purging Those Pesky Mail Logs Date: Mon, 11 Jul 2016 03:09:25 +0000 From: Jack Ryan <mixmaster@remailer.cpunk.us> References: <5225d8932ac7ad947454404e0a884cc8@remailer.org.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com X-Received-Body-Crc: 1980054123 Newsgroups: alt.privacy.anon-server Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 27 X-Received-Bytes: 1568