Categorygithub.com/losfair/caddy-log-kafka
modulepackage
0.0.0-20211117010333-69586bb119d5
Repository: https://github.com/losfair/caddy-log-kafka.git
Documentation: pkg.go.dev

# README

caddy-log-kafka

A Caddy log writer that writes logs to Kafka.

Usage

This is a Caddy log output module so you can configure it in your Caddyfile:

example.com {
  log {
    output kafka {
      address kafka.default.svc.cluster.local:9092
      topic "com.example.caddy-log.{args.0}"
      partition 0
    }
    format json
  }
}

Processing the logs

I use the following tools to analyze the logs:

# Structs

Reference: https://github.com/caddyserver/caddy/blob/e3c369d4526e44f23efb10aaad8a60ce519720a0/modules/logging/netwriter.go.
No description provided by the author