Hi
Create a cront entry for log rotate script
Create small script to email out i.e.
# Compress logfiles
gzip <log files>
# Email out file { providing SMTP has been set up and/or access from Linux server
mailx -s "SUBJECT" < "gzip file"
#Blat log file
cat /dev/null > <log files(s)>
Cheers
Phil
www.your.it
|
20/03/2006 13:00 From e_tective <[EMAIL PROTECTED]> To Peterborough LUG - No commercial posts <[email protected]> cc Subject [Peterboro] Apache2 Log Control Please respond to Peterborough LUG - No commercial posts |
H All
I have a couple of Apache2 questions if anyone an help out:
I have been running a couple of small sites on an Apache2 web server for
a little while now, and have noticed that some of my logs are growing
rapidly in size.
Is there a way that I can have more control over the logs, perhaps by
pumping them out to an e-mail address at a specified time each day, then
clearing down the logs ready for the next day. Is that possible? Is
there any software available that would do this for me?
Also, are there any apps that will provide me with stats from the web
server, amount of page requests, browsers used etc.
Cheers
Stu
___________________________________________________________
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
_______________________________________________
Peterboro mailing list
[email protected]
http://mailman.lug.org.uk/mailman/listinfo/peterboro
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
_______________________________________________ Peterboro mailing list [email protected] http://mailman.lug.org.uk/mailman/listinfo/peterboro
