Baoyuantop commented on issue #12206: URL: https://github.com/apache/apisix/issues/12206#issuecomment-2875605034
In the default configuration, the log function of the stream proxy is disabled (enable_access_log: false). As can be seen from `cli/config.lua`, `nginx_config.stream.enable_access_log` is used to control whether to enable the stream log. The default stream log format is: `"$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time"`. The default stream log output path is: `logs/access_stream.log`. APISIX's Prometheus plugin supports monitoring of stream proxies. There is a dedicated metric `apisix_stream_connection_total` for monitoring the number of connections of stream proxies. In the configuration file, you need to add "prometheus" in the stream_plugins section to enable traffic monitoring -- 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]
