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.

Error logs

Discussion in 'General Discussion' started by Audiopro, Apr 6, 2014.

  1. Audiopro

    Audiopro Active Member

    Joined:
    Feb 15, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I would like to look through the error logs on my VPS to see what sort of problems we are unaware of. I can access the logs via ssh but I am looking for a more intuitive way of regularly checking the log files.

    Is there a way of accessing all of the log files through cPanel and if not why not?
    Can I delete the log files via cPanel and again, if not why not?
     
  2. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    This doc might be helpful: https://documentation.cpanel.net/display/ALD/Error+Log

    You can view the most recent log entries (according to the rules described in that document) in the cPanel interface, under Logs >> Error Logs.

    One reason that we limit the log entries available via the cPanel and WHM interfaces is due to the size log files can be, which can pose a resource problem.
     
    #2 Shavaun, Apr 6, 2014
    Last edited: Apr 6, 2014
  3. Audiopro

    Audiopro Active Member

    Joined:
    Feb 15, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I don't see why making the logs accessible via cPanel is a resource problem. The logs already exist so are taking up the space already.

    I am looking for a more efficient way of evaluating the logs rather than having to trawl through a huge paragraph of text and to be able to empty the log files once I have studied them.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    - Assuming you have CSF installed, you can Watch System Logs in almost real time, and Search System logs right from within WHM. You can also setup Log Scanner to email you hourly or daily via CSF configuration settings. ConfigServer Security & Firewall
    - Using Logview, you can view, download, and rotate logs. LogView - cPanel add-on - LogView
    - At the cPanel account level you can store Raw Access logs and then download and review in your favorite log viewer if you like. You can use Logaholic (if Enabled on the account) to get very advanced details as well. Website Statistics by Logaholic Web Analytics Software

    There are several Feature Requests concerning log viewing open for comments/votes located here:
    Advanced logs manager & reporting / alerting for WHM - cPanel Feature Requests
    Add Apache Log File Viewer In WHM Control Panel - cPanel Feature Requests


    I'm not sure if there is a more efficient way to review, search, manage log files than from the command line.
     
  5. Audiopro

    Audiopro Active Member

    Joined:
    Feb 15, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I do not have CSF installed, unfortunately.
    The ISP who host my VPS keep insisting, that as it isn't a managed server, I have to sort out all the problems myself.
    If I had the tools I would do the job but it seems to me that the tools provided rely on throwing problems into the air and hoping the wind will take the bad bits away.

    The log files are files on the server, why can I not just access them via Perl and analyse them on the server?
     
    #5 Audiopro, Apr 7, 2014
    Last edited: Apr 7, 2014
  6. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    That is actually a suggestion I had in a post for you before I deleted it. A lot of shared host admins do that. For example they might have it parsed to remove information they don't want and then it emails them the results, or the script copies it somewhere that is easier to access.

    Perl is a great way to parse text log files, and there are a lot of example scripts that are available.
     
Loading...

Share This Page