tiepgm commented on issue #11337: URL: https://github.com/apache/apisix/issues/11337#issuecomment-2151579038
yes, I am using this configuration for http_logger `{ "_meta": { "disable": false }, "batch_max_size": 1000, "buffer_duration": 60, "concat_method": "json", "inactive_timeout": 5, "include_req_body": true, "include_resp_body": true, "log_format": { "balancer_ip": "$balancer_ip", "balancer_port": "$balancer_port", "client_ip": "$remote_addr", "content_type": "$content_type", "geoip_latitude": "$geoip_latitude", "geoip_longitude": "$geoip_longitude", "host": "$host", "http_user_agent": "$http_user_agent", "request_body": "$request_body", "request_method": "$request_method", "request_time": "$request_time", "request_uri": "$request_uri", "resp_body": "$resp_body", "status": "$status", "timestamp": "$time_iso8601", "upstream_response_time": "$upstream_response_time", "upstream_status": "$upstream_status", "uri": "$uri" }, "max_retry_count": 0, "name": "http logger", "retry_delay": 1, "ssl_verify": false, "timeout": 3, "uri": "..." }` And this is the log i got `{ "_id" : ObjectId("666127719c48e0d8946f7e71"), "host" : "109.362.25.36", "status" : NumberInt(200), "request_method" : "POST", "balancer_ip" : "109.362.25.37", "balancer_port" : NumberInt(7001), "request_time" : 0.146, "upstream_response_time" : 0.145, "client_ip" : "42.119.173.189", "request_uri" : "/api/v1/get_order", "upstream_status" : "200", "timestamp" : "2024-06-06T03:05:11+00:00", "request_body" : "{\r\n \"shop_id\": \"shop_test\",\r\n \"page\": 0,\r\n \"page_size\": 10,\r\n \"start_date\": \"2024-05-01\",\r\n \"end_date\": \"2024-05-31\",\r\n \"email\": \"\",\r\n \"status\": \"\"\r\n}", "route_id" : "503471665204691658", "uri" : "/productreviews/email_service/query_list_order", "http_user_agent" : "PostmanRuntime/7.37.3", "content_type" : "application/json", "resp_body" : "{\"_pagination\":{\"total\":0,\"totalPage\":1},\"data\":[],\"message\":\"OK\",\"result_code\":200}\n" }` -- 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-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org