[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] virtual site logs
- Subject: Re: [cobalt-users] virtual site logs
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue Oct 1 16:12:24 2002
- Organization: Front Street Networks LLC
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Tuesday 01 October 2002 02:03 pm, Thom LaCosta wrote:
> On Tue, 1 Oct 2002, Gerald Waugh wrote:
> > > I think people mentioned in the past that they've changed the ownership
> > > of the logs so that it didn't count against the site quota. Check the
> > > archives.
> >
> > Why shouldn't a client pay for storing his log files?
>
> Well, one reason might be that the client doesn't want/like the
> "out of the soap box" stuff the Cobalt gives them.
>
> My clients are more impressed with weblog than the standard Sun/Cobalt
> Issued detergent. It only needs to read the web.log
>
> Of course, the RaQ makes use of some of the log files for the warning
> system on over the quota limits.
>
> So. my question is more along the lines of:
> If I want to read only web.log
> and ??? files for the active monitor
> what files could I delete, per site, via cron?
>
> I'm not sure how often active monitor runs.
>
> The other alternative, form my perspective, is that I'd like a way to
> save the client space if they aren't using the Cobalt stats.
>
> I'm trying to answer a client right now who wonders why with 5 megs in
> web space used, and no mail piling up, why the logs are taking up 12
> megs.
>
> I tried telling her it was "The Cobalt Way", but she replied:
> "Little Grasshopper, I pay large dollars to get semantic obfuscation from
> my therapist, I don't expect it from my provider."
>
> Since she sends in her check every month, it never bounces, she doesn't
> spam nor ask too many questions, I though it might be nice to give her
> an answer that neither was cloudy not required her to wash her laundry as
> part of the discovery process.
>
put this script in /etc/cron.quarter-hourly/
========== cut below this line ============
#!/bin/sh
# deletes logs for sitex 'x' is the site Number
rm /home/sites/sitex/logs/*
#
========== cut above this line ===========
as root
cd /etc/cron.quarter-hourly/
vi delete-sitex-logs.sh
i
== paste ===
Esc
:wq
chmod +x delete-sitex-logs.sh
Done!
It could possibly run after split_logs (Is that part of logrotate)?
Gerald
--
http://frontstreetnetworks.com http://raqware.com
Front Street Networks LLC Phone: +1 203 785 0699
229 Front Street, Ste. C, New Haven CT 06513-3203