AKV
AKV

Reputation: 181

logWatch for monitoring catalina.out

I am using logwatch and it is working good except for tomcat logs. There is no services in place for tomcat logs. Can any one help in configuring logwatch for monitoring catalina.out file?

Upvotes: 0

Views: 2233

Answers (1)

Ashok Vairavan
Ashok Vairavan

Reputation: 1962

Add the file /etc/logwatch/conf/services/tomcat.conf,

Title = "Tomcat"

//Which logfile group...

LogFile = catalina

In file /etc/logwatch/conf/logfiles/catalina.conf,

LogFile = catalina.out

Place your filter as /etc/logwatch/scripts/services/tomcat. Logwatch will "cat" all the logfiles specified in catalina.conf and you program your filter to capture the interesting logs. Please refer http://www.stellarcore.net/logwatch/tabs/docs/HOWTO-Customize-LogWatch.html

Upvotes: 1

Related Questions