Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > VPS, Dedicated & Colocation Hosting > Getting more out of LogWatch on a cPanel/WHM server
forgot password?


Reply


Old
  Post #1 (permalink)   05-05-2009, 02:27 AM
HD Newbie
 
Join Date: Apr 2009
Posts: 35

Status: Exa_Ankur is offline
I was searching for something else the other day and came across this (search for LogWatch on the page).
It changes the default paths for some of the log files so that they work on a cPanel/WHM server.
This will give you more reports in your daily LogWatch email - specifically, it adds exim, apache, courier and PureFTP logs.

Most tutorials only show you how to change the detail level or the email address in logwatch.conf.
So, I thought I'd share this piece of information.

I found that a few changes were necessary for my system.
So, I'll give all the steps I followed below:

1) After you have installed LogWatch, change the following in /usr/share/logwatch/default.conf/logwatch.conf :

Code:
Detail = High
MailTo = <your email address>
You can use Detail = Med if you want to reduce the details you get.

2) Add the following to /etc/logwatch/conf/override.conf (you may have to create the file):

Code:
logfiles/exim: LogFile = exim_mainlog
logfiles/http: LogFile = /usr/local/apache/logs/access_log
services/pop3: *OnlyService = cpanelpop
services/pop3: *RemoveHeaders = 1
services/pureftpd: LogFile = messages
services/pureftpd: $show_logins = 1
services/pureftpd: $show_logouts = 1
services/pureftpd: $show_new_connections = 1
So, if you are not bored reading LogWatch's daily logs and would like to increase your workload, you now know how to
How have you configured your LogWatch installation ? Or do you use something other than LogWatch ?
__________________
PawBill: Automation and Billing System
 
 
 


Old
  Post #2 (permalink)   05-05-2009, 03:56 PM
HD Community Advisor
 
handsonhosting's Avatar
 
Join Date: Mar 2005
Location: Omaha, NE
Posts: 2,008

Status: handsonhosting is offline
wow - MORE information to parse through. I spend hours going thorugh logwatch files. I know there's a few systems out there for parsing logwatch information to make it easier to read. Anyone have any suggestions on better organization?
__________________
Conor Treacy
http://www.HandsOnWebHosting.com
cPanel Web Hosting, Domain Registration, Managed VPS Servers
SEO in Omaha NE
 
 
 


Old
  Post #3 (permalink)   09-14-2009, 08:35 AM
HD Newbie
 
Join Date: Sep 2009
Posts: 8

Status: JayWiz is offline
Very good information. It is indeed useful for me as webmaster.
I will look into my server configuration and changes all that necessary.
Thanks for your tutorial.
__________________
FreePRchecker.com hosted by In2net Linux VPS
 
 
 


Old
  Post #4 (permalink)   10-13-2009, 04:05 AM
HD Newbie
 
Join Date: Oct 2009
Posts: 2
Send a message via Yahoo to bahman63

Status: bahman63 is offline
Thanks for your tutorial.
 
 
 


Old
  Post #5 (permalink)   10-13-2009, 01:03 PM
HD Amateur
 
Join Date: Aug 2009
Posts: 74

Status: PowerDot is offline
Thank you for share your wisdom.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: