Remote log viewer for Java/Glassfish log files [closed]

I'm looking for a log viewer with similar capablilties as Chainsaw, in which I can tail Glassfish log files over for instance SSH/SCP. Does anyone know if such a tool exist?

Asked by: Emily168 | Posted: 23-01-2022

Answer 1

OtrosLogViewer user VFSFileSystems and can load logs from remote server (ftp, sftp, smb, http). It supports java.util.logging.XMLFormatter and java.util.logging.SimpleFormatter. See:

Answered by: Lucas751 | Posted: 24-02-2022

Answer 2

I have started looking at OtrosLogViewer and found recent updates to it require changes to the pattern file format for GlassFish. Information is from this issue.

Here is the pattern definition that works for me:

name=GlassFish Pattern

I am using release 2012-04-25 of OtrosLogViewer. Until the problem of parsing the trailing \n|#] is solved they will pollute the messages a bit.

Edited: The fourth field is the logger name.

Answered by: Fiona465 | Posted: 24-02-2022

Answer 3

OtrosLogViewer is nice but you have to setup the pattern for glassfish logs.

Simply create a file in ${OTROS_ROOT}/plugins/logimporters/glassfish.pattern with:

name=glassfish parser

Answered by: Patrick848 | Posted: 24-02-2022

Answer 4

Does Chainsaw with the VFS plugin not do that?

Answered by: Julian616 | Posted: 24-02-2022

Answer 5

From other post:

  1. Configure putty to write out a log file from the connection.
  2. Do the log analysis against the putty log file.

Answered by: Rafael922 | Posted: 24-02-2022

Answer 6

I have put together something that allows me to use java.util logging with GlassFish and Chainsaw. Sources etc. here:

Answered by: Lenny436 | Posted: 24-02-2022

Answer 7

Try Retrospective Log Analyzer ->

It can search over files and tail files on a remote server using SSH (on the local disks as well). It does not have to download the content of the file to search over it (like Otros). Everything is done ad-hoc on the server (in a read-only manner - so that the production servers are safe).

It can also do the line and column split automatically (it will parse the log file and generate the line and column split pattern that is compliant with log4j so that your log entries are split correctly) - you don't have to guess/type it yourself.

Finally, it can also parse the date, so that you can search over local/remote files using a date filter (really useful if you have a lot of old files in one folder).

DISCLAIMER: I am one of the developers that work on Retrospective. This post is not an advert, but a personal statement based on my opinion and experience. I have tested all the proposed solutions that are mentioned in this thread and I am convinced that Retrospective is the best solution to this problem.

Answered by: Lana292 | Posted: 24-02-2022

Answer 8

VFSLogFilePatternReceiver uses Jakarta Commons-VFS, so it supports SFTP and SCP. See:

Answered by: John404 | Posted: 24-02-2022

Similar questions

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)