问题描述
我需要读取带有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的欢迎选项卡/查看选项卡/查看示例接收器配置按钮,以获取示例配置文件).
问题描述
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).