Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to rotate access logs in apache

Status
Not open for further replies.

shantec

Technical User
Oct 20, 2002
29
TR
i'm trying to rotate my access logs, so that i have it parsed by date, as a different file, each day.

i have written this in my httpd.conf, by altering this line, but didn't work.


TransferLog /path/to/logs/access.log
#TransferLog "|rotatelogs/path/to/logs/access.log 86400"

and what is a good opensource apache web log analysis program other than webalizer?also customizable

i would certainly appreciate your help,
 
Ok looks like 1)you missed the space from between rotatelogs and the path statement and 2) you have the entry hashed (#) out ? .....

Try:
TransferLog "| rotatelogs /path/to/logs/access.log 86400"

As for Stats, I find AWStats realy impressive (managers love the look) and it works realy cool to.

Its a bit of a pig to configure (well not realy if you follow instructions), but you do need to be running perl

Find it on sourceforge:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top