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

发布于 2024-09-02 13:51:24 字数 71 浏览 2 评论 0原文

我需要从 tomcat 读取包含日志的远程文件

如果我可以通过 ssh 访问日志文件夹,那么最方便的方法是什么?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

a√萤火虫的光℡ 2024-09-09 13:51:24

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

免责声明:我是 OtrosLogViewer 的作者

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

百合的盛世恋 2024-09-09 13:51:24

使用 Editplus 通过 FTP/SSH 连接到远程服务器。

根据需要刷新日志。

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

Refresh the logs as and when you need to.

够钟 2024-09-09 13:51:24

您可以使用 log4j 的 Chainsaw V2 和 VFSLogFilePatternReceiver 通过 Jakarta Commons-VFS 对 ssh 的支持来解析和跟踪日志文件。

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

log4j“同伴”页面:
http://logging.apache.org/log4j/companions/

最简单的获取方法从 Chainsaw 开始,将其与附加组件、组件和接收器“同伴”一起检查(svn),并使用 Maven 构建它们。

构建 Chainsaw 后,您可以运行 appassembler/bin 文件夹中的脚本,并使用可以跟踪日志文件的接收器配置来配置 Chainsaw(有关示例配置文件,请参阅 Chainsaw 的“欢迎”选项卡/查看示例接收器配置按钮)。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文