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
2 answers

How does an out-of-process semantic logging service receive events?

The reason I'm asking is I would like to use the out-of-proc mode, but I cannot install a service on each user's workstation, only on a central server. Is the communication between event source and listener service an ETW thing, or is there some…
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
1 answer

Semantic logging vs wad logs table

I want to decide between semantic logging for azure vs traditional logging where all logs use to go to wadlogs table. Is there any specific reason we should go for one or other? what is the difference between two and which one is preferable?
0
votes
0 answers

ETW Provider stopped working

we are using ETW for tracing activities in our applications. when server applications are under heavy work, and we start tracing with our runtime tracing application, sometimes our provider doesn't work. and restarting tracing application and server…
0
votes
1 answer

ETW Debugging config

I am trying to use ETW to log errors/exceptions in my service. The event source is pretty basic: public class Logger : EventSource { public static readonly Logger Instance = new Logger(); // Use default trace listener so only profiler sees…
Jay Desai
  • 15
  • 7
0
votes
1 answer

Why is the SLAB service warning of dropped events for my ETW event source?

I'm getting this error on one of my servers: EventId : 806, Level : Warning, Message : Some events will be lost because of bu ffer overruns or schema synchronization delays in trace session: Microsoft-Seman ticLogging-Etw-Mobile2ConsoleListener.,…
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
0 answers

Has Microsoft.Diagnostics.Tracing.EventSource dropped support for Channels?

I've just upgraded my service to use the latest NuGet ETW package, previously using the beta version. However, it seems channel support has been dropped from the event source. Does anyone have an idea what has happened here?
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
1 answer

Using ETW in ASP.NET 4.5.1, how do I get the Debug channel to show up in Event Viewer?

I am using the NuGet TraceEvent library. I am trying to write Level.Verbose events to the Debug channel; however, the Debug channel is not showing up in EventViewer. I have tried modifying the manifest to change the default enabled="false" to…
Jason
  • 4,897
  • 2
  • 33
  • 40
0
votes
2 answers

File monitor- c# or c++

I am developing a file monitor to monitor file access of any exe. I monitor that exe for any file it opens/closes,reads/writes and collect the stats. I am total newcomer to ETW (as from my research, it does not look there is any other way to do…
0
votes
0 answers

c# metro ETW - some events are not logged

I have a C#/XAML application and I use ETW to log events to flat file. 9/10 times the StorageFile is not set and my event is not logged. Constructor: public AppEventSource(string logFileName) { this._logFileName = logFileName; …
andrewb
  • 2,995
  • 7
  • 54
  • 95
0
votes
1 answer

EventProvider constructor throwing Win32Exception Not enough storage

After moving a WCF service from one production server to another, where the configuration is very similar, custom event logging via Event Trace for Windows has stopped working, but just for one app. The error is being thrown in the ctor of the…
Sentinel
  • 3,582
  • 1
  • 30
  • 44
0
votes
1 answer

Run-time Manifest-based events

Does the fact that Manifest-based events are defined in resources mean that I can't generate the parameters (like Level, Message, EventID etc) at run-time without modifying the resources in binary?
n0p
  • 713
  • 10
  • 23
0
votes
1 answer

How to consume ETW events at the driver level?

From inside of my Windows driver, I would like to know how to: a) turn on certain built-in providers b) consume events real-time by providing a callback function (wherein I want to do something) that is part of my driver. c) turn off the…
Krishna
  • 145
  • 1
  • 11
0
votes
1 answer

Consuming an ETW kernel trace using C#

I am using Windows Server 2012 and trying to consume a kernel trace from ETW using C#. For example, I have a Data Collector Set entitled "LiveKernel" which has a "Windows Kernel Trace" provider catching thread syscall events and the stream mode is…
canzar
  • 340
  • 4
  • 17
0
votes
1 answer

Collection of MS SQL Server trace log

I need to write a program which can collect SQL Server trace logs from C code. There seem to be a couple methods to do this: Using the most common SQL trace method where trace files are mapped to tables via stored procedures. This trace log can…
b0ti
  • 2,319
  • 1
  • 18
  • 18
0
votes
0 answers

Using ETW to print time stamp on context switch

I am using the following code that I found on Microsoft's website. It compiles successfully and outputs a log file, as it's supposed to: #include "stdafx.h" #define INITGUID // Include this #define to use SystemTraceControlGuid in…
John Roberts
  • 5,885
  • 21
  • 70
  • 124
1 2 3
29
30