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

Posted on 2009-12-17
Last Modified: 2012-05-08
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
Question by:wingkchan
    1 Comment
    LVL 2

    Accepted Solution

    Oh.... I dug a little further and see that apache needs to be restart to take effect....

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now