aspnet / AspNetKatana

Microsoft's OWIN implementation, the Katana project
Apache License 2.0
963 stars 332 forks source link

Correlate OWIN Requests with Windows Event Logs #417

Closed shubham1172 closed 3 years ago

shubham1172 commented 3 years ago

Hi,

We want to track TLS usage across our self-hosted app, like #387, and there was a suggestion to use SCHANNEL logging https://stackoverflow.com/a/25090724. I can see the logs in Windows Event Viewer after turning on SCHANNEL information logs: image

How can I correlate this log with an OWIN request? There is a correlation ID in the Event Viewer, but how can one use that in OWIN?

Tratcher commented 3 years ago

I think you would need to enable ETW for Http.Sys to correlate TLS and HTTP data.