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.

UK Surveillance Laws - How to Comply

Discussion in 'General Discussion' started by ecommercesussex, Jul 15, 2014.

  1. ecommercesussex

    Joined:
    Sep 19, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Guys,
    I thought I'd open this up here as it's going to be important going forwards.

    How do you change cPanel to not delete logs for 12x months.

    Specifically Email.

    Many Thanks

    David
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    What logs are you referring to, specifically? Most all of them are configurable.
     
  3. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Was wondering if this is really the responsibility of the hosting business or the data center?
     
  4. ecommercesussex

    Joined:
    Sep 19, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    If every log was kept so you could use the Mail Delivery Reports feature in WHM to be able to go back 12x months. You would have a record of all Incoming and Outgoing email.

    Only thing I've found so far, was in Tweak Settings:-

    Log rotation size threshold (Minimum: 10) [?]
    300 MB default
    MB

    AND

    Keep log files at the end of the month [?]
    Note: Selecting this option is not recommended, as log files can quickly use up your server’s disk space.


    On
    Off
    default


    I'm assuming that last one tells the server not to delete any logs?

    So If i turn that on, they will just stay there, then I could run a cron script to delete old log files every 12x months?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on what specific log files you need to retain? For instance, is it the Apache log files, Exim logs, or some other type?

    Thank you.
     
  6. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    Greetings fellow sussex person :) The eximstats days to retain in tweak settings is useful here I believe, retaining the email logs in the database has the useful benefit of it being obvious to the user that their email logs are being retained if they have access to and browse the relevant part of their cPanel interface.

    I'm hoping that outlaw knock something similar to Data Retention Laws: What they mean for communication service providers for the new law.

    I'd be interested to know if you're planning on shipping logs out to a specific storage box at an interval, on some servers I can see that database getting absolutely huge and potential performance problems...
     
    #6 ThinIce, Jul 16, 2014
    Last edited: Jul 16, 2014
  7. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Most of the system log rotation is configured in /etc/logrotate.conf and /etc/logrotate.d/*. You can adjust your retention periods there.
     
  8. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi what UK laws are these i have not herd of anything ?
     
  9. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I don't think this new UK law affects hosting companys, reading in the Independent newspaper it only mentions ISPs and mobile phone operators.
     

Share This Page