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 2020/09/11 09:42:13 UTC

[GitHub] [apisix] zwwhub opened a new issue #2220: How to get the parameters of the post request in the log plugins

zwwhub opened a new issue #2220:
URL: https://github.com/apache/apisix/issues/2220


   It seems that the input parameters of the post request are not recorded in tcp-logger and http-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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just send an parameter  named "include_req_body". Maybe we should add it in the  @[doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md)  @membphis


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zwwhub closed issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
zwwhub closed issue #2220:
URL: https://github.com/apache/apisix/issues/2220


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just send an parameter  named "include_req_body". Maybe we should add it in the [doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md)@.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zwwhub commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
zwwhub commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-690996936


   When I tried to modify the plugin source code to get the parameters through method ngx.req.get_post_args(), an error was reported: API disabled in the context of ngx.timer


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just set an parameter  named "include_req_body". Maybe we should add it in the  [doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md)  @membphis


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just set an parameter  named "include_req_body". Maybe we should add it in the  [doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md) 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zwwhub commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
zwwhub commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-690996936






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zwwhub commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
zwwhub commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691768345


   i get it,thanks


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 commented on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 commented on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just send an parameter  named "include_req_body". Maybe we should add it in the [doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md).


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887






----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] gy09535 edited a comment on issue #2220: How to get the parameters of the post request in the log plugins

Posted by GitBox <gi...@apache.org>.
gy09535 edited a comment on issue #2220:
URL: https://github.com/apache/apisix/issues/2220#issuecomment-691413887


   The nginx timer is out of request life cycle , you can get it in the  log event  of plugin, and  other way  the log plugin is already support get request body, you can just set an parameter  named "include_req_body". Maybe we should add it in the  @[doc](https://github.com/apache/apisix/blob/master/doc/zh-cn/plugins/syslog.md)  @membphis


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org