我需要从Tomcat上读取一个带有日志的远程文件[英] I need to read a remote file with logs from a tomcat

本文是小编为大家收集整理的关于我需要从Tomcat上读取一个带有日志的远程文件的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我需要读取带有tomcat的日志的远程文件

如果我对日志文件夹有SSH访问权限,最方便的方法是什么?

推荐答案

otroslogviewer 可以从远程服务器读取日志.它支持SFTP,FTP和Samba.它还提供远程文件系统浏览器.

免责声明:我是Otroslogviewer的作者

其他推荐答案

使用EditPlus通过FTP/SSH连接到远程服务器.

在需要时刷新日志.

其他推荐答案

您可以使用log4j的电锯V2和VFSlogFilePatterNreceiver使用jakarta commons-vfs支持SSH.

电锯页: http://logging.apache.org/chainsaw/chainsaw/

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

最简单的链锯的方法是将其与其他人,组件和接收器"同伴"一起检查(SVN),并使用Maven构建它们.

构建了电锯后,您可以在Appassembler/bin文件夹中运行脚本,并使用接收器配置配置Chainsaw,可以尾随日志文件(请参阅Chainsaw的欢迎选项卡/查看选项卡/查看示例接收器配置按钮,以获取示例配置文件).

本文地址:https://www.itbaoku.cn/post/1574813.html

问题描述

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 ?

推荐答案

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

其他推荐答案

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

Refresh the logs as and when you need to.

其他推荐答案

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).