dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.21k stars 9.95k forks source link

Add cs-bytes and sc-bytes to the W3CLogger #35614

Open ajkonkol opened 3 years ago

ajkonkol commented 3 years ago

Is your feature request related to a problem? Please describe.

As our company migrates from mainly Windows/IIS/Full Framework to more and more Linux/Kestrel/.NET 6, we'd like to continue feeding our web server access (W3C) logs into our Elastic stack. Our current IIS logs include fields that indicate the size of each request and response (in bytes) in fields named cs-bytes (client-to-server) and sc-bytes (server-to-client). We noticed that the new W3CLogger doesn't include these fields, which can be very handy when troubleshooting issues and monitoring system health.

Describe the solution you'd like

We'd like to see cs-bytes and sc-bytes be new fields added to the W3CLogger. This would include seeing these fields on the Microsoft.AspNetCore.HttpLogging.W3CLoggingFields enum.

Additional context

Add any other context or screenshots about the feature request here.

wtgodbe commented 3 years ago

Good suggestion, we will consider adding these for .Net 7. Unfortunately it is too late to add new API to .Net 6 at this point.

ghost commented 2 years ago

Thanks for contacting us.

We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.