a6-plugin-kafka-logger

Push APISIX request and response logs to Kafka topics via the a6 kafka-logger plugin.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/api7/a6 --skill a6-plugin-kafka-logger-api7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-kafka-logger
Source: https://github.com/api7/a6/tree/main/skills/a6-plugin-kafka-logger
Command: npx skills add https://github.com/api7/a6 --skill a6-plugin-kafka-logger-api7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streaming API logs to Kafka is essential for real-time analytics and monitoring, but configuring reliable log pipelines across brokers and clusters can be complex. The a6-plugin-kafka-logger simplifies this by pushing APISIX logs to Kafka topics with secure SASL options and batched delivery.

Core Features & Use Cases

  • Push request/response logs to Kafka topics from APISIX.
  • Supports multiple brokers with SASL authentication for secure clusters.
  • Offers async or sync producing and batched delivery for high throughput.
  • Enables custom log formats to match downstream analytics pipelines.

Quick Start

Attach the kafka-logger plugin to a route to start streaming logs to Kafka.

Frequently Asked Questions about a6-plugin-kafka-logger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream APISIX API logs directly to Kafka topics?

You can stream APISIX API logs to Kafka by attaching the a6 kafka-logger plugin to a route, which pushes request and response data to configured Kafka topics for real-time analytics.

Can I use SASL authentication when sending APISIX logs to a secure Kafka cluster?

Yes, sending APISIX logs to a secure Kafka cluster supports SASL authentication, ensuring that your log streaming pipeline safely connects to brokers requiring authenticated access.

How does batched delivery work for high-throughput API logging to Kafka?

High-throughput API logging to Kafka is handled through batched delivery and configurable async or sync producing, allowing the plugin to efficiently push large volumes of APISIX logs without blocking gateway traffic.

How do I customize the log format for APISIX request logs streamed to Kafka?

You can customize the log format for APISIX logs streamed to Kafka through the a6 CLI configuration, enabling the structured log data to precisely match the requirements of your downstream analytics pipelines.

Does the APISIX Kafka logger plugin support connecting to multiple brokers?

Yes, the APISIX Kafka logger plugin supports configuring multiple brokers, allowing you to distribute log streaming across a Kafka cluster to improve pipeline redundancy and throughput.

What is the best way to configure Kafka logging routes in APISIX using a6?

The best way to configure Kafka logging routes in APISIX is through the a6 CLI, which allows you to securely attach the kafka-logger plugin and manage scalable log streaming settings.