Skip to main content

Log Format in Log Collection

API7 Cloud allows users to configure different log formats when they use Log Collection to satisfy variant needs. This guide will show you the details about the log format.

Kafka Logger

There are three different log formats for the Kafka Logger.

  • Default JSON Log Format: Collect default request/response messages. You can refer to Apache APISIX Kafka Plugin Meta Format to see its (default) fields.
  • Original Request: Collect request messages and concatenate them in HTTP request format. You can refer to Apache APISIX Kafka Plugin Meta Format to see its (origin) fields.
  • Custom JSON Log Format: Users can assemble the log message (into a JSON string with at most one level hierarchy) according to their needs. Users need to write the log message template with Variables.

HTTP Logger

Currently, HTTP Logger doesn't support customizing the log format. It only supports the Default JSON Log Format (same as Kafka Logger).


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN Ltd. 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation