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.

Rotate accoutn apache log

Discussion in 'EasyApache' started by speckados, Mar 26, 2004.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've put on every account a file .cpanel-logs with

    Well.

    I don't kown exactly how work.

    I see that any accounts rotate but not every month, and theirs files get a big log.

    It's possible modify (what script) for archive log every 15 days, or before get a 1GB file ?
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    the file: logrotate.conf (probably in /etc)

    look at man logrotate for a simple explanation, but you'll probably want to edit logrotate.conf and change the directive:

    # rotate log files weekly
    weekly


    to

    # rotate log files when they reach 1024M
    size 1024M
     

Share This Page