fluent-forwarder

command module
v0.0.0-...-8c118da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2020 License: MIT Imports: 17 Imported by: 0

README

Fluentd forwarder

Build Status Go Report Card GitHub license

Simple implementation of log forwarder, optimized for low overhead.

  • Accepts log events in fluentd protocol over TCP or UNIX socket
  • Maintains write-ahead log offering at-least-once delivery guarantee
  • Forwards into local FS files grouped by tag and rotated by time, or to another fluentd server
  • Exposes Prometheus metrics over HTTP

Usage

./fluent-forwarder --help
  -h, --help                                       Show help message
      --http string[="0.0.0.0:24225"]              Profiling and monitoring URI
      --input-fwd string[="tcp://0.0.0.0:24224"]   Listen for incoming fluentd traffic. 
                                                   Either tcp://HOST:PORT or unix://SOCKET_PATH
      --log string                                 Logging level (trace,debug,info,warn,error,fatal) (default "info")
      --target-fwd string                          Target forwarder, tcp://FLUENT_HOST:PORT
      --target-log string[="/opt/logs"]            Target log directory
      --wal string                                 Buffer directory (default "/opt/logs/.buffer")
Examples

Accept logs over UNIX socket, forward both to a central fluentd collector and a local storage, expose metrics on :24225:

./fluent-forrwarder \
    --input-fwd=unix:///var/run/fluent/fluent.sock \
    --target-fwd=tcp://logs-collector.local:24224 \
    --target-log=/opt/logs \
    --http

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL