Create Cron Job to email the Raw Access Log every day

inukshuk

Registered
Feb 20, 2002
1
0
301
Hi,

my website is hosted on a webserver using Cpanel 3 and I want to automaticaly email the access log to someone.

Is it possible to do that via the cron jobs ?

Thank for your help.
 

shaun

Well-Known Member
PartnerNOC
Verifed Vendor
Nov 9, 2001
708
1
318
San Clemente, Ca
cPanel Access Level
DataCenter Provider
Twitter
echo &mail [email protected] & /usr/local/apache/logs/access_log& & /etc/cron.daily/email_access_log
chmod 0700 /etc/cron.daily/email_access_log

**Warning** I'm not sure what a huge access log would do to the performance of the server. For all i know a 2gig access_log could crash it. Use this at your own Risk

:p

Also this wont attach the access log. The email will be the access log. I dont beleive their is a easy way to attach files. I could be wrong.