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.

Best way to implement additional log processing?

Discussion in 'General Discussion' started by criznach, May 19, 2014.

  1. criznach

    criznach Registered

    Joined:
    May 19, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've been looking at the apache logging, rotation, and stats setup on our cpanel server, and I need to find a way to do some additional processing to our domain logs before they are rotated or removed.

    I can try and run a script on cron just before stats are run, but there will be a short window where data may be lost. Is there a documented or recommended way to add a step in the process? And should I be watching /usr/local/apache/domlogs, or ~/logs? Domlogs appear to be more current, but are they reset when the ~/logs files are created?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    criznach Registered

    Joined:
    May 19, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you! That looks very promising.
     
Loading...

Share This Page