troubleshooting Question

How to use the rotatelog.exe in apache to create new log each day?

Avatar of wingkchan
wingkchan asked on
Apache Web Server
1 Comment1 Solution617 ViewsLast Modified:
Hi Experts,


I am trying to get my newly setup Apache Web server to divide up the access.log each day @ 00:00, so that it won't grow too big, as well as providing a way to daily log for analysis (how many visits & pageviews).

I read from a few places about the rotatelog.exe that can be used to divide log.  However, I experienced for a few hours and still couldn't figure out how that works.  (sorry, I am new to apache)... can any one explains it in details as how that works?

What I had tried:

1. Install Apache 2.2.9 in windows 2003 Standard server
2. In C:\Program Files\Apache Software Foundation\Apache2.2\conf\, modifed the "http.conf" to use "customlog" as follow:
    CustomLog "|bin/rotatelogs logs/access_%Y-%m-%d--%H-%M-%S.log 86400" combined
3.changed the system clock to 24 hours later
4. hit F5 to refresh the http://localhost
5. Result is that,the log is still kept in the original access.log file, but not break into a new file.

Do I have the concept mis-understood?  Thanks very much
ASKER CERTIFIED SOLUTION
wingkchan

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros