Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default Rotating some log files - best practice

    Hi,

    I've recently been trying to track down large files on my server and have come across a few log files that are not getting rotated, and I'm curious about other thoughts on best practice to deal with these.

    1) /usr/local/apache/domlogs/www.customer.com-ssl_data_log
    I'm not sure why this isn't being rotated like the other domlogs and am not sure what to do. I'm not sure where domlog rotation is controlled.


    2) /var/log/secure.myserver.com
    This is SSLLogFile for a shared ssl I offer my clients. I'm not really sure why it's there. I suppose it doesn't matter. Should I just create a file for this in /etc/logrotate.d? I sort of understand those files. Anything special I should be aware of?


    3) /var/spool/mqueue/.razor/razor-agent.log
    I suppose I should also add this to /etc/logrotate.d. I could just purge it now and then, but then I'd have to remember to do it.

    Any tips?

  2. #2
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    No advice? Was my question improper, too basic or too off topic?

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    11

    Default Re:logs

    Hello,

    As you already know the cPanel creates statistics for your customers(webalized,awstats....). The data required for the statistics creation is taken from your Apache log files. The logs are not rotated - their data is used and they are being deleted after that.
    If you have applications like razor/pyzor... then you have to create your own logrotate script in order to be able to rotate their logs. The reason - the cPanel just does not know about them, they are not a part of its default installation , so it is unable to manage them.
    Regarding the "*secure*" file in your "/var/log/" folder - it is created by other external application and "logrotate" entry is the best option in this case.


    Best Regards
    Kevin
    cpanelblog.hostsol.eu

  4. #4
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Thanks Kevin

Similar Threads & Tags
Similar threads

  1. New Setup - Best Practice
    By abnet in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2011, 02:58 PM
  2. Why isn't rotatelog used for rotating the access_log and error_log files?
    By anup123 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-30-2004, 02:11 PM
  3. best backup practice!!
    By atul in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2004, 09:00 AM
  4. Log rotating
    By DN-Paul in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-29-2004, 04:04 AM
  5. Rotating log files every week
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-05-2002, 04:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube