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.

ftp logs too big. start with a fresh log? can it be split at certain size?

Discussion in 'General Discussion' started by Gosa, Mar 30, 2012.

  1. Gosa

    Gosa Member

    Joined:
    Jun 28, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    In the following location /usr/local/apache/domlogs/ACCOUNT_NAME I can see 3 files:
    1. ftp.mydomain.com-ftp_log
    2. mydomain.com
    3. sub.mydomain.com

    (I changed the names of the domain into mydomain)

    The ftp log is over 2GB.
    I'd like to start fresh with a new log file.
    1) Can I just rename the file. Will then a new file be created automatically?
    2a) Can I set how big the ftp log file can be and let it split when it reaches the specified size? For example every 50 MB start a new file. So it will become something like this
    ftp.mydomain.com-ftp_log1
    ftp.mydomain.com-ftp_log2
    ftp.mydomain.com-ftp_log3
    ftp.mydomain.com-ftp_log4
    and so on.
    2b) Or one ftp log per day. that way I can go to a file of a specific day to analyse it.


    Thanks in advance.

    Regards,

    Gosa
     
Loading...

Share This Page