I need to read a remote file with logs from a tomc

2019-02-14 07:12发布

I need to read a remote file with logs from a tomcat

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

3条回答
贪生不怕死
2楼-- · 2019-02-14 07:24

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

Refresh the logs as and when you need to.

查看更多
放我归山
3楼-- · 2019-02-14 07:35

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

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

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

The easiest way to get started with Chainsaw is check it out (svn) along with the extras, component and receivers 'companions', build them using maven.

Once Chainsaw is built, you can run the script in the appassembler/bin folder and configure Chainsaw with a receiver configuration that can tail the log file (see Chainsaw's Welcome tab/view example receiver configuration button for an example config file).

查看更多
Animai°情兽
4楼-- · 2019-02-14 07:40

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

Disclaimer: I am the author of OtrosLogViewer

查看更多
登录 后发表回答