Skip to content

help request: Is there a way for kafka-logger to log gzipped http message properly ? #9697

Description

@lee-x-zh

Description

I plan to use Kafka-logger to log api request body and response body for further analysis。
I just found that api response with header content-encoding set to "gzip", body containing Chinese words, was not logged properly。when parsing such response bodies via json tools, " Invalid UTF-8 start byte 0x8b" alike errors arise。
Is there a way to resolve this problem ?

Environment

  • APISIX version (run apisix version): 2.15.3
  • Operating system (run uname -a): linux
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.5.4
  • APISIX Dashboard version, if relevant: 2.15.0
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions