« Previous Next »

Thread: invalid character was found in text content

Last post 09-29-2009 10:40 AM by zumsel. 18 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (19 items) < Previous 1 2

Sort Posts:

  • 05-04-2006, 12:18 PM In reply to

    RE: invalid character was found in text content

    Got it. It was fixed, but in a version that hasn't been released yet.

    I'll send you a PM.

  • 08-25-2006, 10:27 AM In reply to

    RE: invalid character was found in text content

    Can we get a version of this I am having the same errors or is there another fix?
  • 08-25-2006, 4:03 PM In reply to

    RE: invalid character was found in text content

    JTaylor,

    There were a few emails exchanged privately to try to work through this problem with no success.  I think we ended up agreeing that it was a bug with the way logparser handles those random byte values when outputting XML.

    I'm not sure what your situation is.  In my case using logparser the way I was trying to do it, by dumping to XML format, would have introduced a relatively minor security risk to the security log reporting system that I was attempting to implement.  I have little control over the machines that get joined to our domain due to our decentralized environment, and I was dealing with domain controller logs that report computer names in many of the security log events.  Lacking a fix for logparser, I decided to abandon the XML output for now.

    Ultimately it comes down to this:
    1) You can wait for a fix in a future release.  No ETA on this.  (Maybe Gabriele has some insight into this.)

    2) You can fix the machine that is sending the invalid characters.  (I didn't bother with this because it would ultimately not have solved my problem since at any time someoneelse could have added a new machine with the same problem.  This would have broken the security log reporting process potentially allowing bad guys to get away with something undetected.)

    3) You can use another format to dump the log files.  In my case I chose CSV, but we may be setting up a syslog server in the future.


    Keep in mind that, if you really are seeing the same thing, there are really two bugs here.

    One is that the faulty machine is generating bad event data for the computer name.

    The second is that logparser wasn't able to properly handle the bad characters in the event log.

    If you can fix the first problem and be shure that it won't happen again, Logparser would not be forced to deal with the bad data in the first place.

    Good Luck,

    - metzlerd

  • 09-29-2009, 10:40 AM In reply to

    • zumsel
    • Not Ranked
    • Joined on 09-07-2009, 9:18 AM
    • Posts 2

    Re: RE: invalid character was found in text content

    Hi

    I was faced with the same problem when trying to convert evt to xml. Got some really strange Message contents like 0x07  (0x07 – BEL) and so on

    I just converted Strings and Message in SELECT part a bit:

    REPLACE_STR(HEX_TO_ASC(TO_HEX(message)),'.','') AS NewMessage, REPLACE_STR(HEX_TO_ASC(TO_HEX(strings)),'.','')  AS NewStrings

    Worked fine for me

     

     

Page 2 of 2 (19 items) < Previous 1 2
Microsoft Communities