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:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The Apache domlogs are what's utilized for statistics processing. I believe the statistics hookable events will be useful to you:

    Stat Functions - Hookable Events

    Thank you.
     
  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