microsoft / IIS.ServiceMonitor

An entrypoint process for running IIS in Windows containers
MIT License
127 stars 39 forks source link

Listen on ETW and Wirte to STDOUT #13

Closed mcy94w closed 6 years ago

mcy94w commented 7 years ago

ETW Listener will Listen on the IIS Logging ETW Channel { 0x7E8AD27F, 0xB271, 0x4EA2,{ 0xA7, 0x83, 0xA4, 0x7B, 0xDE, 0x29, 0x14, 0x3B } } and write every etw event to STDOUT.

mcy94w commented 7 years ago

https://github.com/Microsoft/IIS.ServiceMonitor/issues/1

shirhatti commented 7 years ago

Can you add a comment with what the sample output looks like?

mcy94w commented 7 years ago

Service 'w3svc' has been stopped Service 'w3svc' started BYE date 2017-10-05 time 18:15:00 s-sitename W3SVC1 s-computername ed4d698ac001 s-ip 172.23.82.122 cs-method GET cs-uri-stem /BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB cs-uri-query - port 80 cs-user-name - c-ip 10.127.64.214 cs-version HTTP/1.1 cs(User-Agent) - cs(Cookie) - cs(Referer) - cs-host 10.209.34.86 sc-status 404 sc-substatus 0 sc-win32-status 2 sc-bytes 1406 cs -bytess 113 time-taken 6949 x-forwarded-for - NAMES 0/tcp clever_meninsky date 2017-10-05 time 18:15:15 s-sitename W3SVC1 s-computername ed4d698ac001 s-ip 172.23.82.122 cs-method GET cs-uri-stem /BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB cs-uri-query - port 80 cs-user-name - c-ip 10.127.64.214 cs-version HTTP/1.1 cs(User-Agent) - cs(Cookie) - cs(Referer) - cs-host 10.209.34.86 sc-status 404 sc-substatus 0 sc-win32-status 2 sc-bytes 1406 cs -bytess 113 time-taken 98 x-forwarded-for -

date 2017-10-05 time 18:15:15 s-sitename W3SVC1 s-computername ed4d698ac001 s-ip 172.23.82.122 cs-method GET cs-uri-stem /BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB cs-uri-query - port 80 cs-user-name - c-ip 10.127.64.214 cs-version HTTP/1.1 cs(User-Agent) - cs(Cookie) - cs(Referer) - cs-host 10.209.34.86 sc-status 404 sc-substatus 0 sc-win32-status 2 sc-bytes 1406 cs -bytess 113 time-taken 93 x-forwarded-for -

bariscaglar commented 6 years ago

@mcy94w @shirhatti has this been documented?

shirhatti commented 6 years ago

No, this hasn't been documented yet.

shirhatti commented 6 years ago

Let's add an environment variable to toggle this as well ENABLE_IIS_CONSOLE_LOGGING Set to 1 to Enable