mrostamii commented on issue #5719:
URL: https://github.com/apache/apisix/issues/5719#issuecomment-2694062542

   I also have the same issue, the created service config is:
   ```
   {
       "upstream_id": "test-case",
       "name": "test-case",
       "plugins": {
           "kafka-logger": {
               "brokers": [
                   {
                       "host": "1.50.0.10",
                       "port": 9092
                   },
                   {
                       "host": "1.50.0.11",
                       "port": 9092
                   },
                   {
                       "host": "1.50.0.12",
                       "port": 9092
                   }
               ],
               "name": "kafka logger",
               "kafka_topic": "apisix",
               "key": "test-case",
               "batch_max_size": 100,
               "timeout": 3,
               "timestamp": true,
               "log_format": {
                   "timestamp": "$time_iso8601",
                   "consumer": "$consumer_name",
                   "service_id": "$service_id",
                   "route_id": "$route_id",
                   "request_id": "$request_id",
                   "latency": "$request_time",
                   "node_hostname": "$hostname",
                   "window_start_time": "$time_unix"
               }
           },
           "key-auth": {},
           "cors": {
               "allow_origins": "*",
               "allow_methods": "*",
               "allow_headers": "*",
               "expose_headers": "*"
           },
           "response-rewrite": {
               "headers": {
                   "X-Server-IP": "$remote_addr",
                   "X-Real-IP": "$http_x_real_ip",
                   "X-Forwarded-For": "$http_x_forwarded_for",
                   "X-Request-ID": "$request_id",
                   "X-Original-URI": "$uri",
                   "X-Upstream-IP": "$upstream_addr",
                   "X-Upstream-Response-Time": "$upstream_response_time",
                   "X-Upstream-Status": "$upstream_status",
                   "X-CF-Ray": "$http_cf_ray",
                   "X-CF-IPCountry": "$http_cf_ipcountry",
                   "X-CF-Connecting-IP": "$http_cf_connecting_ip",
                   "X-CF-Visitor": "$http_cf_visitor",
                   "X-CF-Request-ID": "$http_cf_request_id",
                   "X-APISIX-Upstream-Status": "$upstream_status",
                   "X-APISIX-Proxy-Latency": "$upstream_response_time",
                   "X-APISIX-Server": "$hostname",
                   "X-APISIX-Route-ID": "$route_id",
                   "X-APISIX-Consumer-Name": "$consumer_name",
                   "X-SSL-Protocol": "$ssl_protocol",
                   "X-SSL-Cipher": "$ssl_cipher",
                   "X-Scheme": "$scheme",
                   "X-Request-Time": "$request_time",
                   "X-APISIX-Upstream-Filter-Time": "$upstream_filter_time",
                   "X-First-Byte-Time": "$first_byte_time"
               }
           }
       }
   }
   ```
   Version:
   ```
   apisix: 3.11.0
   kafka: 7.4.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-unsubscr...@apisix.apache.org

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

Reply via email to