Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm managing several tomcat instances (aprox 30-35) and looking for some console to centralize the logs. I tried php-syslog-ng before (no with tomcat), and found it useful. I would like that these software would have some of these features:

-Syntax highlight according to the severity of the exceptions. -Tree view for stack traces and nested exceptions.

Bonus point:

-Alarm when certain pattern is matched.

share|improve this question

6 Answers 6

you can use splunk : http://www.splunk.com/ in which you can centralize all logs you have, you can then perform crossed search, it's a freeware, a bit heavy but awesome. You can also use lambda probe http://www.lambdaprobe.org/d/index.htm but it's more for global managment, not especifically for logs.

share|improve this answer
1  
Splunk is great.. Until you hit the amount of logs that you have to pa for. Then it gets insanely expensive. –  Tom O'Connor Apr 28 '11 at 12:20
    
Oh, my bad, I didn't know that there was a log limitation. Thanks –  Razique Jul 28 '11 at 15:27
    
Goodness. I'd forgotten about this! –  Tom O'Connor Jul 28 '11 at 15:33

Have you tried TCLogView?

share|improve this answer
    
No, but it doesn't seem to be what I am looking for, also it's not open source. –  Ari Jan 5 '10 at 14:31

is it possible to change the logging of tomcat to log4j? For log4j there are a lot of logfile viewers: http://www.logmx.com/index.php

http://www.log-viewer.com/net-java-log4j-log-viewer/

http://logging.apache.org/chainsaw/index.html

http://vigilog.sourceforge.net/

They are not all open source but free. Perhaps there is something that helps you.

share|improve this answer
    
I will add OtrosLogViewer code.google.com/p/otroslogviewer to this list (it's free). –  KrzyH Jan 28 '13 at 16:27

Also, have you looked at MuleSoft TcatServer? We provide ability to view the logs from remote Tomcat instances and you can tail the logs. It is not open source, but free to use in development environment.

Disclosure: I work for MuleSoft, and would be happy to answer any specific questions on Tcat Server.

share|improve this answer

We have quite a few tomcat servers I usually admin. What we do is use log4j to actually log all webapp logging to a central log server. What I'm most interested in (from a sysadmin point of view) is to have a look at the logging the container produces itself (in this case tomcats).

So, in order to have look at a few tomcats at a time when things go awry (usually when they are misbehaving) I use a combination of ssh and multitail, which works pretty well under unix. The idea being that you ssh into each box simultaneously and tail the catalina.out file. Multitail has syntax coloring support included and is flexible enough to let you add your own coloring by using regular expressions. When I have to investigate something that happened a few hours ago, I always have to look at the catalina logs themselves, obviously raw.

As per the alarms what I use is a python script that I run in the background, integrated with the startup/shutdown scripts for each tomcat. It basically tails the catalina.out file looking for stuff I find interesting and generating an alert (sms, email, etc) depending on the severity of the issue. I know it might not be the best solution around but it works for me pretty well (and the script is actually not complicated and can be written in your language of choice).

I know this might not be what you are looking for but this is my approach and I'm happy with it by keeping it under the KISS principle. I hope it helps.

share|improve this answer

not exactly a viewer, but does exception sorting and matching:

http://exctractor.sourceforge.net/

a pain to get running, but once set up, can be useful to produce reports/etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.