You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by fatih aydin <fa...@32bit.com.tr.INVALID> on 2024/01/02 08:33:40 UTC

Http-Logger Plugin

Hello, 

I wan to use http-logger plugin for send logs to open search but I set "include_req_body" : true in http-logger its can not create request body in open search fields, also "include_res_body" : true its work. How can i solve this problem ? Can you help me ? 


"http-logger" : { 
"batch_max_size" : 100 , 
"buffer_duration" : 60 , 
"disable" : false , 
"inactive_timeout" : 5 , 
"include_req_body" : true , not work 
"include_res_body" : true , work 
"retry_delay" : 1 , 
"ssl_verify" : false , 
"uri" : "https://x.x.x.x:8000" 
Thank you, 

Regards 



Re: Http-Logger Plugin

Posted by Zhiyuan Ju <ju...@apache.org>.
Hi Fatih,

After checking its document[1], it mentions, "When set to true, includes
the request body in the log. If the request body is too big to be kept in
the memory, it can't be logged due to Nginx's limitations.".

Can you confirm the size of the request body and if it has reached out to
the limitation?

Also, please follow the guide[2] to subscribe to the mailing list.

Thanks

[1] https://apisix.apache.org/docs/apisix/plugins/http-logger/
[2]
https://apisix.apache.org/docs/general/join/#subscribe-to-the-mailing-list

https://www.linkedin.com/in/jjzhiyuan/


On Tue, Jan 2, 2024 at 4:52 PM fatih aydin <fa...@32bit.com.tr.invalid>
wrote:

> Hello,
>
> I wan to use http-logger plugin for send logs to open search but I set
> "include_req_body" : true in http-logger its can not create request body in
> open search fields, also "include_res_body" : true its work. How can i
> solve this problem ? Can you help me ?
>
>
> "http-logger" : {
> "batch_max_size" : 100 ,
> "buffer_duration" : 60 ,
> "disable" : false ,
> "inactive_timeout" : 5 ,
> "include_req_body" : true , not work
> "include_res_body" : true , work
> "retry_delay" : 1 ,
> "ssl_verify" : false ,
> "uri" : "https://x.x.x.x:8000"
> Thank you,
>
> Regards
>
>
>