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

C# - Extending a EventSource manifest with additional events

Is it possible to register multiple manifests under the same event source name with exclusive event ids, and have the resulting event provider be able to consume all the supplied events from more than one manifest? For example if I have two projects…
Pipeline
  • 1,029
  • 1
  • 17
  • 45
0
votes
0 answers

Xperf through a Fast Boot cycle

I need to write a small program/script to run Xperf to collect certain ETW events (OS and drivers) through a Windows Fast Boot (aka Fast Startup) cycle. How would I be able to preserve my program and xperf processes, so they can collect events…
Andrew
  • 127
  • 9
0
votes
2 answers

.net etw Microsoft.Diagnostics.Tracing packages

Do you know if these packages are opensource? I could not find them.... Microsoft.Diagnostics.Tracing.TraceEvent Microsoft.Diagnostics.Tracing.EventRegister What is the of the following package (considering the above packages):…
user3053247
0
votes
1 answer

Visual Studio diagnostics configuration error in event hub set up

I am trying to set up streaming from an Azure VM scale set to an event hub via Diagnostics configuration. I have my public config which includes the SinksConfig as follows (I have omitted the rest of the config for the sake of brevity): { …
Declan McNulty
  • 3,194
  • 6
  • 35
  • 54
0
votes
1 answer

Event MyEvent has ID 2 which is already in use

I am implementing event tracing using EWT in a Service Fabric application and are faced with these errors ERROR: Exception in Command Processing for EventSource MyCompany-ServiceFabricApplication-LiveDataReader: Event OnCommandMessageReceived has ID…
Tony
  • 1,394
  • 5
  • 22
  • 48
0
votes
1 answer

Monitoring ETW logs on remote computer

The usage of Microsoft.Diagnostics.Tracing.TraceEvent library makes it easy to work with ETW logs on local machine - but is there really a way to do the same for remote server? This is how do I get the events of interest on local machine. Really…
0
votes
1 answer

Get created/modified/deleted files by a specific process from an event tracing (ETW) session

I've been searching for a solution to get all created/modified and deleted files by a specific process from an event trace (ETW) session (I will process data from an etl file not from a real-time session). Apparently the simplest solution to get…
0
votes
1 answer

Not able to find the custom event

I am following the sample provided here to use the custom event source. However, after I run the sample, there is no event message found in the event viewer like figure below: Did you have any idea?
Greg
  • 36
  • 5
0
votes
1 answer

Arithmetic operation resulted in an overflow using eventRegister.exe

I'm trying to compile a simple project with ETW logs. Have added EventSource as NuGet reference. When I had Event attributes like this [Event(1, Message = "Something happend in base at begin: {0}")] It wasn't working, but at least it was…
cassandrad
  • 3,412
  • 26
  • 50
0
votes
2 answers

How can I monitor new IPv4 connections in C#

I need to monitor any new IPv4 connection made by a computer. The information I need is the process ID making the connection as well as the IP address the process is connecting to. I would need a callback function that gets called as soon as a new…
HJ Blom
  • 43
  • 7
0
votes
1 answer

How to turn on ETW/WPP for particular driver?

Like in topic I would like to know how to "turn on" ETW or WPP for particular windows driver. Lets for an example take a vdrvroot.sys. When we disassemble this driver we see at the beginning of DriverEntry couple function…
user3305379
  • 35
  • 1
  • 7
0
votes
1 answer

No events registered with SemanticLogging service on single server

I'm trying to get SemanticLogging-svc.exe from the Enterprise Library Semantic Logging Application Block to listen to events for my custom event source and dump them to console. This works fine for my localhost and for a development server, but I…
0
votes
1 answer

Semantic Logging permissions error

I am trying to configure semantic logging on my Windows 8.1 Enterprise environment. Although I have followed the steps specified by Microsoft here I get the following error when Semantic Logging service tries to write an Event from ETW. The …
MariaMadalina
  • 479
  • 6
  • 20
0
votes
1 answer

Can we use logman to catch all events logged into Application channel of event viewer

I have few processes which logs events in Application channel. I want to catch all events in a time period and store it into etl file. Can we do this using logman.
Jitendra
  • 732
  • 1
  • 9
  • 29
0
votes
1 answer

How to control EventLevel for a ETW event triggered through EventSource?

I have this class for triggering ETW events: public sealed class EventSourceWriter : EventSource { public static EventSourceWriter Logger = new EventSourceWriter(); [Event(1, Version = 0, Level = EventLevel.Informational)] public void…
Amit
  • 25,106
  • 25
  • 75
  • 116