Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/cmd/fluent-bit
Cyril Tovena e6778e9827
Update to go 1.15 (#2877)
5 years ago
..
Dockerfile Update to go 1.15 (#2877) 5 years ago
README.md Fluent bit docs (#2390) 5 years ago
buffer.go Logql comparison ops (#2182) 5 years ago
client.go Logql comparison ops (#2182) 5 years ago
config.go fluent-bit plugin support tls (#2568) 5 years ago
config_test.go Fixes the fluentbit batchwait backward compatiblity. (#2375) 5 years ago
dque.go Fix fluent-bit exit callback deadlock when buffering for loki is enabled (#2365) 5 years ago
fluent-bit.conf Fixes the fluentbit batchwait backward compatiblity. (#2375) 5 years ago
loki.go Fixes the lint issue merge to master. (#2290) 5 years ago
loki_test.go JSON encoding: avoid base64 encoding of []byte inside other slices (#1890) 5 years ago
out_loki.go fluent-bit plugin support tls (#2568) 5 years ago

README.md

Fluent Bit output plugin

Fluent Bit is a Fast and Lightweight Data Forwarder, it can be configured with the Loki output plugin to ship logs to Loki. You can define which log files you want to collect using the Tail or Stdin input plugin. Additionally Fluent Bit supports multiple Filter and Parser plugins (Kubernetes, JSON, etc..) to structure and alter log lines.

This plugin is implemented with Fluent Bit's Go plugin interface. It pushes logs to Loki using a GRPC connection.

syslog and systemd input plugin have not been tested yet, feedback appreciated.

Building

Prerequisites:

  • Go 1.11+
  • gcc (for cgo)

To build the output plugin library file (out_loki.so), you can use:

make fluent-bit-plugin

You can also build the docker image with the plugin pre-installed using:

make fluent-bit-image

Finally if you want to test you can use make fluent-bit-test to send some logs to your local Loki instance.