The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why isn't rotatelog used for rotating the access_log and error_log files?

Discussion in 'General Discussion' started by anup123, Nov 30, 2004.

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Just a question wrt apache log file rotation (which is just a single file which keeps on growing).

    why isn't the /usr/local/apache/bin/rotatelog used for rotating the /usr/local/apache/logs/access_log and error_log files so that their size are kept under control instead of allowing just a single file to grow.

    If possible then what exactly should be done so that the logfiles are rotated to avoid uncontrolled growth of the log files.

    TIA
    Anup
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Thanks.
    I was more concerned about the access_log and error_log as i have mass hosting with mod_vhost_alias where the logs could grow pretty large quite fast:

    Anyone tried the following:

    http://httpd.apache.org/docs/logs.html#piped

    TIA
    Anup
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Post reading your article, i find that the things are pretty messed up wrt log rotation. I am sure cPanel admins are not looking forward to a Bug report or a feature request to iron this out. I am sorry cPanel, but lo rotation seems to be the most neglected issue in the software in general.


    Anup
     
Loading...

Share This Page