XML-Like Log File Parsing Tools -


has seen log file format before, or know name of it?

<msg time='2010-01-10t17:41:31' type='info' attrbute3='value' ... >log message</msg> 

right parsing line line ruby script info need out, looking things microsoft log parser because has sql-ish query support.

the problem since entries in log file above example many top level elements, tools won't parse it. complain error message "only 1 top level element allowed in xml document."

i smash 1 file top level element, rather reuse existing before going down rabbit hole further.

thanks, alex

this arcgis server log file. file describes them @ help.arcgis.com.

each dat file has companion xml file same name. defines root element xml file , references dat file.

the log parser utility work if pass xml file input. example, following statement write errors arcgis server log csv file:

logparser -i xml -o csv "select * errors.csv server-server-20120227-000000.xml#/log/msg type='error'" 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -