[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Complete beginner struggling to get weekly log files



Stuart Wright wrote:
> 
> information.  I managed (through luck more than judgement) to set up a
> cron job to zip up the access_log file every Saturday midnight.  I
> could then download the .gz file and run Webtrands on it to produce
> the advertising stats reports the advertisers require.
> I would like to do the same with the new server but don't have a clue
> where to start.  The Cobalt knowledge base and the manual do not
> provide the information I need.

Can't be that precise, but here's a leg-up:
run "locate logrotate | less" to find where the config files are.
If the RaQ is like the Qube, then it'll be in /etc/logrotate.d/apache.
You'll see it's size based, not time based.

You could increase the size and then do a daily cronjob to
copy the logfile.  Read "man logrotate"

Or replace the "size" line with "weekly".

Warning: this will invalidate your warranty.  I don't know 
how this will interact with the GUI.  I have never tried it.
Proceed at your own risk.  If in doubt, hire a consultant.

-- 
Dom.