针对数据挖掘和可视化的工具支持,日志事件的最佳XML格式? [英] Best XML format for log events in terms of tool support for data mining and visualization?

查看:172
本文介绍了针对数据挖掘和可视化的工具支持,日志事件的最佳XML格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望能够从我们的Java应用程序创建日志文件,该文件适合以后通过工具进行处理,以帮助调查错误并收集性能统计信息。

We want to be able to create log files from our Java application which is suited for later processing by tools to help investigate bugs and gather performance statistics.

目前我们使用传统的日志内容,可能会或可能不会被压缩成文本形式并附加到日志文件中,但这种方式最适合少量的人类阅读的信息。

Currently we use the traditional "log stuff which may or may not be flattened into text form and appended to a log file", but this works the best for small amounts of information read by a human.

经过慎重考虑,最好的办法是将日志事件作为XML片段存储在文本文件中(然后将其视为任何其他日志文件) ),然后使用适当的工具将它们下载到机器上进行后期处理。

After careful consideration the best bet has been to store the log events as XML snippets in text files (which is then treated like any other log file), and then download them to the machine with the appropriate tool for post processing.

我想尽可能使用广泛支持的XML格式,现在我处于研究 - 然后决定阶段。我很感激XML格式和工具方面的任何帮助,我很乐意编写胶水代码来获得我需要的东西。

I'd like to use as widely supported an XML format as possible, and right now I am in the "research-then-make-decision" phase. I'd appreciate any help both in terms of XML format and tools and I'd be happy to write glue code to get what I need.

我发现了什么到目前为止:

What I've found so far:

log4j XML格式:由chainsaw和Vigilog支持。
Lilith XML格式:Lilith支持

log4j XML format: Supported by chainsaw and Vigilog. Lilith XML format: Supported by Lilith

未经调查的工具:

Microsoft Log Parser:显然支持XML。
OS X日志查看器:

Microsoft Log Parser: Apparently supports XML. OS X log viewer:

此外还有很多工具 http://www.loganalysis.org/sections/parsing/generic-log-parsers/

有任何建议吗?

推荐答案

Lilith日志查看器似乎包含一种非常适合处理的XML格式在logback中提供额外的设施,而不仅仅是log4j的东西。

It appears that the Lilith log viewer contains an XML-format which is well suited for dealing with the extra facilities available in logback and not only the log4j things.

现在 - 目前为止最好的选择:)

It is - for now - the best bet so far :)

我将log4j xmllayout类改编为logback,适用于电锯。

I adapted the log4j xmllayout class to logback, which works with chainsaw.

由于我无法找到一个能够显示事件信息的合适的日志查看器(而不仅仅是在表格中显示所有事件),我现在决定创建一个包含机器的非常简洁的xml布局基于上述的可解析信息,然后可以对其进行后处理Microsoft LogParser到我需要的任何格式。

As I have not been able to find a suitable log viewer capable of visualizing event information (instead of just presenting all events in a table) I have for now decided to create a very terse xml layout containing machine parsable information based on the above which can then be postprocessed by the Microsoft LogParser to any format I need.

这篇关于针对数据挖掘和可视化的工具支持,日志事件的最佳XML格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆