Analyzing Windows Performance Analyzer Trace File RRS feed

  • Question

  • Windows 8.1 contains FileLoggingSession class which generates log files with etl extension. I upload it on my server. Then I need to analyze it (in C#) to look for error or critical messages (written via LoggingChannel.LogMessage method) and store them to Azure Table Storage. The file format is binary. I need some ETW library to parse file content. Where can I find it?
    Monday, October 21, 2013 8:53 PM


All replies

  • You can open and parse the log file with OpenTrace, ProcessTrace , and then CloseTrace . See the Consuming Events documentation for more details. I believe you will need to do this from a desktop app.


    Tuesday, October 22, 2013 1:47 AM
  • Exists some library for reading logged messages from C#? I'm giving error 0x490 when I call TdhGetEventInformation. I would like to avoid C++/CLI.
    Tuesday, October 22, 2013 10:38 AM
  • I'm not aware of a C# wrapper, but somebody in one of the desktop C# forums may know of one. You should be able to pinvoke rather than using C++/CLI.


    Tuesday, October 22, 2013 2:41 PM