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/23 08:29:35 UTC

[GitHub] [apisix] 90yangkang opened a new issue #5585: request help: How to record interface(restful api) request log and return log?

90yangkang opened a new issue #5585:
URL: https://github.com/apache/apisix/issues/5585


   ### Issue description
   
   For example, when a request arrives at apifix, you can record the time of the request, URL parameters, body parameters, return time and return data of the request.
   
   
   ### Environment
   
   - apisix version: 2.10
   - OS : docker OS
   - OpenResty / Nginx version:1.19.0-alpine
   - etcd version, if have : 3.4.15
   - apisix-dashboard version:2.9.0
   
   


-- 
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] tzssangglass commented on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   not relevant to this issue, see: https://github.com/apache/apisix/issues/4098#issuecomment-977762062


-- 
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] tzssangglass commented on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   you can use some other logger plugin, such as `http-looger`, `tcp-logger` or write plugin to do this. APISIX can record what you have said and you will need to make your own choices depending on the situation.


-- 
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] 90yangkang commented on issue #5585: request help: How to record interface(restful api) request log and return log?

Posted by GitBox <gi...@apache.org>.
90yangkang commented on issue #5585:
URL: https://github.com/apache/apisix/issues/5585#issuecomment-976434560


   > `kafka-logger` can do this
   
   No Kafuka server   @tzssangglass 


-- 
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] tzssangglass commented on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   some existing PRs are refining these features, e.g. https://github.com/apache/apisix/pull/5550
   
   http-logger and tcp-logger support record response can refer to this, if you are interested, 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] tzssangglass commented on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   `kafka-logger` can do this?


-- 
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] tokers commented on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   @bzp2010 PTAL, 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] 90yangkang commented on issue #5585: request help: How to record interface(restful api) request log and return log?

Posted by GitBox <gi...@apache.org>.
90yangkang commented on issue #5585:
URL: https://github.com/apache/apisix/issues/5585#issuecomment-977411260


   > you can use some other logger plugin, such as `http-looger`, `tcp-logger` or write plugin to do this. APISIX can record what you have said and you will need to make your own choices depending on the situation.
   
   http-logger and tcp-logger record the request info, don't record the return info.


-- 
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] 90yangkang commented on issue #5585: request help: How to record interface(restful api) request log and return log?

Posted by GitBox <gi...@apache.org>.
90yangkang commented on issue #5585:
URL: https://github.com/apache/apisix/issues/5585#issuecomment-977789367


   > some existing PRs are refining these features, e.g. #5550
   > 
   > http-logger and tcp-logger support record response can refer to this, if you are interested, PR is welcome!
   
   ![微信截图_20211124192659](https://user-images.githubusercontent.com/35477514/143229988-9bbc04b7-2a09-4e3e-9b05-b80e697e4f7d.png)
   
   
   ![微信截图_20211124152248](https://user-images.githubusercontent.com/35477514/143230017-337ca3ec-deb1-4253-b159-e3ed8926fe93.png)
   
   
   use http-logger, Failed to get log_ format。


-- 
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] tzssangglass edited a comment on issue #5585: request help: How to record interface(restful api) request log and return log?

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


   `kafka-logger` can do this


-- 
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] 90yangkang commented on issue #5585: request help: How to record interface(restful api) request log and return log?

Posted by GitBox <gi...@apache.org>.
90yangkang commented on issue #5585:
URL: https://github.com/apache/apisix/issues/5585#issuecomment-978713873


   > not relevant to this issue, see: [#4098 (comment)](https://github.com/apache/apisix/issues/4098#issuecomment-977762062)
   
   Ok,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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] 90yangkang closed issue #5585: request help: How to record interface(restful api) request log and return log?

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


   


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