I need to read a remote log file from tomcat

I need to read a remote log file from tomcat

What is the most convenient way to do this if I have ssh access to the log folder?

+4
source share
3 answers

OtrosLogViewer can read logs from a remote server. It supports SFTP, FTP and Samba. It also provides a remote file system browser.

Disclaimer I am the author of OtrosLogViewer

+7
source

Use Editplus to connect to a remote server via FTP / SSH.

Update the logs as and when you need to.

+3
source

You can use log4j Chainsaw V2 and VFSLogFilePatternReceiver to parse and close the log file using Jakarta Commons-VFS support for ssh.

Chainsaw page: http://logging.apache.org/chainsaw/

Page

log4j 'companions: http://logging.apache.org/log4j/companions/

The easiest way to start with a chainsaw is to check it (svn) together with the additional components and companions of the recipients, build them using maven.

After creating Chainsaw, you can run the script in the appassembler / bin folder and configure Chainsaw with a receiver configuration that can display a log file (see the "Welcome Greetings" section / sample receiver configuration example for an example configuration file).

+2
source

Source: https://habr.com/ru/post/1310490/


All Articles