You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/02 03:38:44 UTC
[GitHub] [apisix] feeops opened a new issue #5400: request help: 四层代理stream route如何启用日志?
feeops opened a new issue #5400:
URL: https://github.com/apache/apisix/issues/5400
### Issue description
七层的http日志是存储在acccess.log中的
四层代理stream route如何启用日志并自定义日志路径呢?
传统的openresty是可以实现的
### Environment
最新版
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] feeops commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
feeops commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-960489589
> You can add access log configuration in
>
> https://github.com/apache/apisix/blob/042ce5c1a6a4e040d6d6924f2d86e5534b730134/conf/config-default.yaml#L176
>
> and render in the template. See https://nginx.org/en/docs/stream/ngx_stream_log_module.html
这个不起作用,可以在config.yaml中添加
```
nginx_config:
stream_configuration_snippet: |
log_format basic '$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time $upstream_addr $upstream_bytes_sent $upstream_bytes_received $upstream_connect_time';
access_log logs/access_stream.log basic;
```
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] feeops commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
feeops commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957126387
> We haven't supported it yet. PR is welcome!
结合tcp-logger插件能实现吗?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #5400: request help: How to enable logging for the four-layer proxy stream route?
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5400:
URL: https://github.com/apache/apisix/issues/5400
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957124942
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957126537
No
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] feeops commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
feeops commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957126387
> We haven't supported it yet. PR is welcome!
结合tcp-logger插件能实现吗?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957124942
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957124942
We haven't supported it yet. PR is welcome!
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957139394
You can add access log configuration in https://github.com/apache/apisix/blob/042ce5c1a6a4e040d6d6924f2d86e5534b730134/conf/config-default.yaml#L176 and render in the template. See https://nginx.org/en/docs/stream/ngx_stream_log_module.html
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] feeops commented on issue #5400: request help: 四层代理stream route如何启用日志?
Posted by GitBox <gi...@apache.org>.
feeops commented on issue #5400:
URL: https://github.com/apache/apisix/issues/5400#issuecomment-957126387
> We haven't supported it yet. PR is welcome!
结合tcp-logger插件能实现吗?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org