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.

Raw FTP log

Discussion in 'General Discussion' started by puffin, May 8, 2009.

  1. puffin

    puffin Member

    Joined:
    Aug 30, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I recently attempted to check a client's raw FTP log from several days ago, only to discover the log was empty.

    Upon investigating, I realized Tweak Settings>Stats and Logs>'Delete each domain's access logs after stats run' had been enabled. My stats run each day, thus I concluded that my client logs were being deleted each day.

    I unchecked this box and after one day all client logs for the past day are now available.

    My question: If I leave this option unchecked, will my logs continue to grow indefinitely?

    While my daily FTP logs are rather small, my daily raw access logs are quite large and will soon take up too much disk space.

    Is there a better solution for retaining only my FTP logs and not my raw access logs?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In this scenario, the logs will still be rotated on a monthly basis. If this is insufficient for your needs, please let me know.
     
  3. puffin

    puffin Member

    Joined:
    Aug 30, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, David, but I now see there's a better solution than using disk space to view FTP logs: search the message logs via shell access for a particular account's activity.

    grep [account_name] /var/log/messages | more

    Please correct me if I'm wrong, but it appears the most recent log messages are found in /var/log/messages, then archived chronologically (messages.1, messages.2, messages.3, messages.4).

    Four weeks worth of logs is more than enough.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Correct, chronologically with .1 being the most recent archive.
     
Loading...

Share This Page