Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassfish log files analysis

Can I get some recommendations for good log analysis software for Glassfish log files? Since it will not vary from application server to application server dramatically, I guess that there is a common solution for all servers.

Thanks

like image 993
Cem Avatar asked May 04 '10 20:05

Cem


2 Answers

I agree with lili.

I just began using OtrosLogviewer and wanted to share the custom .pattern file that is needed to parse GF logs. The following .pattern file works for GF 2.1.1 logs:

type=log4j
customLevels=SEVERE=FATAL,WARNING=WARN,CONFIG=INFO,FINE=DEBUG,FINER=TRACE,FINEST=TRACE,INFO=INFO
pattern=[#|TIMESTAMP|LEVEL|PROP(A)|CLASS|_ThreadID=PROP(B);_ThreadName=THREAD;|MESSAGE
dateFormat=yyyy-MM-dd'T'HH:mm:ss.SSSZZZZ
name=Glassfish Logfile
charset=UTF-8

Dump the above in a glassfish.pattern file in the Otros install folder in $olv-home\plugins\logimporters\.

Then when you re-open Otros, you should see the following option :

enter image description here

More patterns on this thread : http://code.google.com/p/otroslogviewer/issues/detail?id=97

Related question : Remote log viewer for Java/Glassfish log files

like image 165
Ashutosh Jindal Avatar answered Oct 27 '22 04:10

Ashutosh Jindal


I like OtrosLogViewer. It lets you define any formatter, trail log file and filter it by Class/Thread/Log Level/Time

like image 34
lili Avatar answered Oct 27 '22 02:10

lili