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.

Call Script that Deletes Logs after Stats Run Manually?

Discussion in 'General Discussion' started by thewird, Jan 9, 2008.

  1. thewird

    thewird Well-Known Member

    Joined:
    Jan 4, 2006
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Toronto
    I'm trying to create a script to archive logs for 7 days but still deleted them from the domlogs daily. Has someone already done this? The idea solution would be to modify the CPanel script that deletes them after stats run but I'm not sure if thats protected code by CPanel. The other option would be to disable the delete logs after stats run option and to create a script to copy the logs somewhere else via cron and call the script that CPanel uses to delete the logs without restarting apache. This script would also move the files through directories and eventually delete them, therfore preserving the logs for 7 days. Any ideas?

    thewird
     
    #1 thewird, Jan 9, 2008
    Last edited: Jan 9, 2008
  2. thewird

    thewird Well-Known Member

    Joined:
    Jan 4, 2006
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Toronto
    code removed....
     
    #2 thewird, Jan 9, 2008
    Last edited: Jan 9, 2008
  3. thewird

    thewird Well-Known Member

    Joined:
    Jan 4, 2006
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Toronto
    Anybody know?

    thewird
     
Loading...

Share This Page