Add cs-bytes and sc-bytes to the W3CLogger #35614
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
feature-http-logging
Milestone
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.
The text was updated successfully, but these errors were encountered: