Audiopro

Active Member
Feb 15, 2014
37
0
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?
 

Shavaun

Well-Known Member
Aug 15, 2013
106
0
91
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.
 
Last edited:

Audiopro

Active Member
Feb 15, 2014
37
0
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.
 

Infopro

Well-Known Member
May 20, 2003
17,090
518
613
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 can access the logs via ssh..
I'm not sure if there is a more efficient way to review, search, manage log files than from the command line.
 

Audiopro

Active Member
Feb 15, 2014
37
0
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?
 
Last edited:

Shavaun

Well-Known Member
Aug 15, 2013
106
0
91
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.