felpasl commented on PR #12696: URL: https://github.com/apache/apisix/pull/12696#issuecomment-3440520847
The goal here is to give users more freedom and control over how logs are handled. Right now, the default log includes useful fields like latency, hostname, method, version, and client IP — but it also bundles headers and other request/response data that I don’t want to store due to privacy concerns and storage overhead. I want to be able to: - Send audit logs to Loki - Stream consumption data to Kafka Customize log formats based on destination and purpose To do that, I need those key fields (latency, hostname, method, version, client IP, etc.) to be available in log_format, so I can use them in custom_log without relying on the default log structure. This change enables that flexibility while keeping observability intact and avoiding unnecessary data. Let me know if you have concerns or suggestions -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
