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
3
votes
1 answer

Semantic Logging using ETW with Custom Keywords not logging

I am trying to use .Net 4.5, Semantic Logging (SLAB) EventSource, to create events with custom keywords. I would like to use Out-of-Process, and use the keywords to steer events to logfiles or SQL. I have used EventSourceAnalyzer against this…
BillH
  • 421
  • 3
  • 7
3
votes
0 answers

Parsing events in real time ETW consumer on Windows

We are working on ETW real time consumer application by referring to https://msdn.microsoft.com/en-us/library/windows/desktop/aa364157(v=vs.85).aspx sample. We have been successful getting callback and print "ParentGuid" of EVENT_TRACE structure…
user1187176
  • 169
  • 1
  • 3
  • 8
3
votes
1 answer

List event classes for ETW provider

I would like to implement an ETW consumer in C for events coming from the Microsoft-Windows-TCPIP provider. However, I fail to find the type of event this provider generates. I already did some similar work to consume events from…
ALOToverflow
  • 2,679
  • 5
  • 36
  • 70
3
votes
0 answers

How to properly define custom event time-stamp fields in ETW, to be used as StartTime and EndTime for gannt graph in WPA?

I'm interested in getting custom ETW events to display Start Time and End Time, like some default windows events do, in order to present it in gantt form, like so: I've hacked around Bruce Dawson's demo manifest and multi-provider files, to add…
Sirotnikov
  • 444
  • 4
  • 10
3
votes
0 answers

ETW how to survive a reboot

Using C++/Win32 API I create myself an event trace session. My application must supported NT5 thus I can't newer the newer APIs. I am using the circular mode flags and real time flags. I have everything working apart from one snag, when I reboot the…
paulm
  • 5,629
  • 7
  • 47
  • 70
3
votes
1 answer

Retrieve ETW Provider Manifest for a registered provider

I would like to retrieve manifest xml file for Provider "Microsoft-Windows-HttpService". I am using Microsoft.Diagnostics.Tracing library to consume ETW events in my .Net application. This library has some built-in parsers like…
Lalit
  • 352
  • 8
  • 22
3
votes
2 answers

Activity id propagation in REST services

WCF has a mechanism to propagate activity ids for logging between service calls. How is this supposed to work when there are REST services in the call stack? Is there a standard HTTP header in which this information should be sent?
MvdD
  • 22,082
  • 8
  • 65
  • 93
3
votes
3 answers

Get Windows event provider information

I would like to retrieve information about event providers using Windows PowerShell? I'm running Windows 8.1 with PowerShell version 4.0, and I noticed that there are some .NET classes in the System.Diagnostics.Eventing namespace that offer some…
user189198
3
votes
2 answers

EventSource .net 4.0 GenerateManifest

I've been trying to work with ETW in .net 4.0. I have started using Microsoft EventSource Library 1.0.4-beta (https://www.nuget.org/packages/Microsoft.Diagnostics.Tracing.EventSource) Here is the code i written for generating events for my…
KRP
  • 131
  • 1
  • 3
  • 15
3
votes
1 answer

Is there a log viewer application that can read log messages from Azure Table Storage?

Microsoft recently released Enterprise Library 6 which contains the new Semantic Logging Block. One of the options available with the Semantic Logging Block is the ability to write log messages to Windows Azure Table Storage, which sounds like a…
3
votes
2 answers

Viewing event data with XPerf?

I'm experimenting with using XPerf to instrument an application for performance analysis. My goal is to log start/stop events within my C# application and analyse certain kernel metrics between these events. I am creating a TraceListener and…
simonhaines
  • 481
  • 7
  • 22
3
votes
3 answers

ETW custom Controller and Consumer (Provider using .net 4.5 EventSource)

I've been trying to work with ETW in .net 4.5. I have a small sample application which uses EventSource to write messages, however, I'm struggling to understand how to create my own ETW controller and consumer application. I've used PerfView to…
tracstarr
  • 103
  • 10
3
votes
2 answers

How to force Event Trace Session to flush data more often?

I have a driver that writes alot of trace logs using WPP. I have configured an AutoLogger registry key entry to write the events to an .etl file. The logging session is started successfully and the file is created, but it appears that the data is…
Grim
  • 937
  • 10
  • 24
3
votes
0 answers

ETW PID accuracy when coming from a kernel provider such as NDIS

I've been playing around with Event Tracing for Windows events, the networking events, NDIS-PacketCapture and TCPIP in particular. Each ETW message has the PID field and I'm trying to figure out the logic behind the assignment. It seems that the…
2
votes
0 answers

Consuming ETW events into a socket/named pipe

I have an application which creates ETW events. So far, I consumed its events using the real-time logger and the file logger. I was wondering - Is it possible to consume the event into an open socket/named pipe? Note that consuming the ETW using…
Tal
  • 422
  • 3
  • 13