与Exchange协议日志loggingparsing器错误

我最近遇到了Microsoft Log Parser。 这是一个了不起的工具。 我parsingExchange接收连接器协议日志,但我遇到与IISW3C格式的这个错误。

C:\TEMP>logparser "SELECT * FROM RECV20170706-1.LOG" -i:IISW3C Task completed with parse errors. Parse errors: 4 parse errors occurred during processing (To see details about the parse error(s), execute the command again with a non-zero value for the "-e" argument) Statistics: ----------- Elements processed: 0 Elements output: 0 Execution time: 0.06 seconds 

使用-e不会修复它

 C:\TEMP>logparser "SELECT * FROM RECV20170706-1.LOG" -i:IISW3C -e 5 Task completed with parse errors. Parse errors: Cannot find '#Fields' directive in header of file "C:\TEMP\RECV20170706-1.LOG". Lines 1 to 1 have been ignored Error while parsing Date directive: missing space between Date and Time LogFile "C:\TEMP\RECV20170706-1.LOG", Row number 4, Directive '#Date:2017-07-06T00:00:04.363Z #Fields' Unknown field date-time,connector-id,session-id,sequence-number,local-endpoint,remote-endpoint,event,data,context found in #Fields directive Cannot find '#Fields' directive in header of file "C:\TEMP\RECV20170706-1.LOG". Lines 6 to 39711 have been ignored 

我试过Log Parser 2.2支持的所有input格式(IISW3C,NCSA,IIS,IISODBC,BIN,IISMSID,HTTPERR,URLSCAN,CSV,TSV,W3C,XML,EVT,ETW,NETMON,REG,ADS,TEXTINE,TEXTWORD,FS ,COM)。 我遇到类似的错误与其他格式。 我可以使用GUI工具Log Parser Studio,但我更喜欢使用命令行。 我注意到GUI使用了不同的input格式,EELLog来parsing。

这些是我的问题。

  • 交换 – 可扩展 – logging唯一可接受的格式?
  • 我可以获取EELinput格式作为命令行实用程序的附加组件吗?
  • 是否有一个命令行开关或Log Parser Studio的其他可执行文件,它允许我在CMD上运行它?
  • 我可以修改标题和指令一点,并实现与IISW3C格式的成功呈现?

更新

使用-i:w3c时出错

 C:\TEMP>logparser -i:w3c "SELECT [data] FROM RECV20170705-1.LOG" Error: SELECT clause: Syntax Error: unknown field 'data'. The closest match for input format 'W3C' is 'date-time,connector-id,session-id,sequence-number,local-endpoint,remote-endpoint,event,data,context'. To see valid fields for the W3C input format type: LogParser -h -i:W3C