« Previous Next »

Thread: Cannot get TSV input format to work properly

Last post 08-04-2009 6:11 PM by maximusdm. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-30-2009, 4:16 PM

    Cannot get TSV input format to work properly

    logparser "select UTCtime,Localtime INTO C:\a.tsv FROM C:\temp\TraceSink.log" -i:TSV -iSeparator:"|"
                    -iHeaderFile:"c:\temp\TraceLogHeader.tsv" -nSkipLines:2 -iTsFormat:"yyyy-MM-dd?hh:mm:ss"

    Error: SELECT clause: Syntax Error: unknown field 'UTCtime'.
    The closest match for input format 'TSV' is 'UTCtime,Localtime,EventID,EventType,ComponentDoingTheLogging,ComponentCausingTheLogging,
    UnknownField,ProcessID,ThreadID,Message,ExceptionDetails'

    c:\temp\TraceLogHeader.tsv:
    ------------------------------------------
    UTCtime,Localtime,EventID,EventType,ComponentDoingTheLogging,ComponentCausingTheLogging,UnknownField,ProcessID,ThreadID,Message,ExceptionDetails


    If I use the same command line above to read the same altered TraceSink.log file (using "," commas as delimiters instead and using :CSV as input format) the results are successful.
    However, the original file: "TraceSink.log" uses "|" as a delimiter, hence my choice of using TSV format which gives me the "iSeparator" option.

    Any ideas?

    Thank you.

    MDM
  • 08-04-2009, 9:48 AM In reply to

    Re: Cannot get TSV input format to work properly

    anybody out there came across with the same issue?

    thanks

    MDM
  • 08-04-2009, 6:11 PM In reply to

    Re: Cannot get TSV input format to work properly

    sorted it out dont worry. / header file contained commas instead of "|"
    Thanks again
    MDM
Page 1 of 1 (3 items)
Microsoft Communities