Questions tagged [etw]

Event Tracing for Windows (ETW) is a high-speed tracing facility provided by the Windows Operating System which was first introduced in Windows 2000.

Event Tracing for Windows (ETW) is a general-purpose, high-speed tracing facility provided by the Windows operating system. Using a buffering and logging mechanism implemented in the kernel, ETW provides a tracing mechanism for events raised by both user-mode applications and kernel-mode device drivers.

Additionally, ETW gives you the ability to enable and disable logging dynamically, making it easy to perform detailed tracing in production environments without requiring reboots or application restarts. The logging mechanism uses per-processor buffers that are written to disk by an asynchronous writer thread. This allows large-scale server applications to write events with minimum disturbance.

ETW is the core tracing facility in Windows on top of which both the Event Log and WPP are built.

ETW was first introduced on Windows 2000. Since then, various core OS and server components have adopted ETW to instrument their activities, and it's now one of the key instrumentation technologies on Windows platforms.

On Windows Vista, ETW has gone through a major upgrade, and one of the most significant changes is the introduction of the unified event provider model and APIs. In short, the new unified APIs combine logging traces and writing to the Event Viewer into one consistent, easy-to-use mechanism for event providers. At the same time, several new features have been added to improve developer and end user experience.

445 questions
0
votes
1 answer

BiosInitTime from Hibernate Resume ETW trace

Looking at the "BiosInitTime" from ETW events parsed using "tracerpt.exe" and I noticed for hibernate/S4 resume it's always 0 (see example at the end). The same happened with etl traces collected directly using XPERF or via ADK Windows Assessment…
Andrew
  • 127
  • 9
0
votes
2 answers

EventSource events show empty in Windows Performance Analyzer

I can successfully generate ETW events with EventSource in a C# console app; however if I store the events in a an ETL file and use Windows Performance Analyzer, the columns corresponding to the payload values, the event name and the provider name…
rcxr
  • 31
  • 3
0
votes
1 answer

Microsoft.Diagnostics.Tracing.EventSource not respecting EventListener enabled keywords for None

I have an event source which derives from EventSource, and an event listener which derives from EventListener. I call the event listener EnableEvents passing in the EventKeywords parameter, but the listener also gets called for any events with no…
Benjol
  • 63,995
  • 54
  • 186
  • 268
0
votes
1 answer

Windows 10 logging with FileLoggingSession and MS Message Analyzer

In my Win10 UWP app, I am using The FileLoggingSession to log various events in my app. I would like to make use of LoggingFields to add custom fields to my log message. We are using Microsoft Message Analyzer to view the logs. However, the custom…
Michael Sabin
  • 1,679
  • 1
  • 20
  • 33
0
votes
1 answer

Logging in backup file using ETW

Is there any way I can use Microsoft.Diagnostic.Tracing.EventSource package or any other .NET built in types to implement a back up logic for logging? I have used an EventSession that directs all logs to an .ETL file but there are two problems with…
0
votes
1 answer

ETW - Windows 8.1 - EventWrittenEventArgs Payload Missing Data

I've had some ETW code in a PCL that's referenced and being used in a Windows 8.1 app that's been working for months. Specifically, this line of code: WriteEvent((int)errorId, message, (useSysLog ? sysLogErrorId :…
Jason Anderson
  • 189
  • 1
  • 4
  • 18
0
votes
1 answer

.NET ETW is not creating event log

I'm developing a sample to create event log using ETW (Microsoft.Diagnostics.Tracing.*) on .NET 4.5 Code compiled good, and I can get the manifest file generated, and manually install it through wevtutil But when testing invoke the log, there's no…
Kelmen
  • 1,053
  • 1
  • 11
  • 24
0
votes
1 answer

.NET ETW - Manifest file not generated

doing logging component using .NET 4.5 working to log into event log, using ETW 4.5 did include ETW framework into System.Diagnostic.Tracing.* however samples and external project lead to install Microsft.Diagnostic.Tracing.* it's really confusing.…
Kelmen
  • 1,053
  • 1
  • 11
  • 24
0
votes
0 answers

Possible to Interface with/use 3rd party Windows driver?

This touches on some already-answered questions, so feel free to duplicate away, but chances are I've already read them and am not satisfied. There are 2 drivers on my system (located in C:\Windows\System32\drivers) called pefndis.sys and…
yano
  • 4,827
  • 2
  • 23
  • 35
0
votes
1 answer

ETW/Eventsource tracing to file (dump)

I use ETW to do tracing in my application. So I create a custom EventSource and EventListener. Now I want to use this tracing from a client side. For example, I want my app to dump the tracing log to a file when the app get an unhandled exception,…
Nicolas Voron
  • 2,916
  • 1
  • 21
  • 35
0
votes
2 answers

The schema of EventEntry was not updated using out-of-process semantic logging

I write a custom EventSource class and add a method for log as below: [EventSource(Name = "MyCompany")] public class MyCompanyEventSource : EventSource { [Event(6, Message = "test.", Keywords = Keywords.Perf, Level =…
capcom923
  • 638
  • 5
  • 15
0
votes
2 answers

Runtime configuration of EventSource guid

We have a scenario whereby multiple pre-release versions of an application run in the same environment. The problem we're seeing is that, because our EventSource has the same name/guid, we cannot differentiate between logs. Is it possible to…
Richard Szalay
  • 83,269
  • 19
  • 178
  • 237
0
votes
2 answers

ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND with Windows EWT

I am attempting to print a very simple log to Windows event viewer. When I call EventWrite() in my .cpp file, I get error code 15003 ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND in the event viewer and my message is not displayed. I think the problem that I…
bhzag
  • 2,932
  • 7
  • 23
  • 39
0
votes
2 answers

Differences between the usage of log4net, ETW & TraceLogging

I have used Debug.WriteLine to debug an existing legacy application to find the program flow. Now I'm studying an event (message) based application which contains multiple services which react on events. It uses many cloud (like Azure)…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
1 answer

Is it possible to create ETW Events and listen to them on the same cloud service with multiple roles?

I have a worker role in which I generate ETW events through my EventSource. I want to have a separate worker role to persist those generated events using TraceEvent library and write them to Azure tables. However, Azure cloud service creates…
mert
  • 1,942
  • 2
  • 23
  • 43