Best XML format for event logging in terms of data mining and visualization tool support?

We want to be able to create log files from our Java application, which is suitable for further processing by tools that help investigate errors and collect performance statistics.

We currently use the traditional "journal material, which may or may not be flattened into text form and added to the log file", but this works best for a small amount of information read by a person.

After careful consideration, it was best to save the log events as XML fragments in text files (which are then processed like any other log file), and then download them to the computer using the appropriate tool for further processing.

I would like to use the most widely supported XML format possible, and now I am in the research-then-decision-decision phase. I would appreciate any help, both in terms of the XML format and with the tools, and I would be happy to write the glue code to get what I need.

What I have found so far:

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

Unexplored tools:

Microsoft Log Parser: Apparently, it supports XML. OS X Log Viewer:

http://www.loganalysis.org/sections/parsing/generic-log-parsers/

?

+2
5

, Lilith XML-, , , log4j.

- - :)


log4j xmllayout logback, .


, ( , ), xml, , , Microsoft LogParser , .

0

, , , , XML. :

<log>
 <msg level="info">I'm a log message</msg>
 <msg level="info">I'm another message</msg>
 <!-- maybe you won't even get here -->
 <msg level="fatal">My server just ate a flaming death

XML- XML. , , . , , , .

+1

XML, XML. Elijah , , XML-, . W3 XML- (. 4.3 W3 XML 1.0, , , , ), . XML-, XML-, XML- (. http://www.perlmonks.org/?node_id=217788#217797 )

+1

log4j , .

, - , , - .

0

logback-access .

, - JMX, SNMP.

0

Source: https://habr.com/ru/post/1615097/


All Articles