Log rotation for Windows Server 2003

Discussion in 'Windows Server' started by Frank Niedermann, Sep 8, 2006.

  1. Hi,

    I'm searching for a log rotation utility to run on Windows Server 2003. It
    should be able to rotate logfiles from Apache2 and Tomcat and likewise server
    applications.

    I know the UNIX/Linux tool logrotate which does exactly such things (but
    unfortunately not on Windows platforms):
    The logrotate utility is designed to simplify the administration of log
    files on a system which generates a lot of log files. Logrotate allows for
    the automatic rotation compression, removal and mailing of log files.
    Logrotate can be set to handle a log file daily, weekly, monthly or when the
    log file gets to a certain size. Normally, logrotate runs as a daily cron job.

    I need such a tool to prevent the server from having logfiles at size over 1
    GB and more which will cause big troubles.

    Regards,
    Frank
     
    Frank Niedermann, Sep 8, 2006
    #1
    1. Advertisements

  2. Hello? Is this so uninteresting for Windows Servers?
     
    Frank Niedermann, Sep 15, 2006
    #2
    1. Advertisements

  3. Frank,

    can you restate your question ?

    or is your question "Is this (log-rotation) so uninteresting for Windows
    Servers" ?

    thanks !
     
    Edwin vMierlo, Sep 15, 2006
    #3
  4. Frank Niedermann

    Razvan Cosma Guest

    Quick hint:
    net stop Apache
    C:\Progra~1\WinRAR\Rar.exe a -df -agYY-MMM-DD [email protected]
    apachelog access.log
    net start Apache

    HTH
     
    Razvan Cosma, Sep 15, 2006
    #4
  5. Edwin vMierlo, Sep 15, 2006
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.