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/clients/cmd/fluent-bit
Callum Styan 2ebbecfcbd
Require unique client configs when there are multiple clients. (#5688)
3 years ago
..
Dockerfile update loki go version to 1.17.8 (#5543) 3 years ago
README.md Loki/Promtail: Client Refactor (#3623) 4 years ago
buffer.go [promtail] Refactor promtail client metrics so that we can't have duplicate metrics collected for the lag metric. (#5521) 3 years ago
client.go [promtail] Refactor promtail client metrics so that we can't have duplicate metrics collected for the lag metric. (#5521) 3 years ago
config.go Use flagext from dskit (#4225) 4 years ago
config_test.go Use flagext from dskit (#4225) 4 years ago
dque.go Require unique client configs when there are multiple clients. (#5688) 3 years ago
fluent-bit.conf Loki/Promtail: Client Refactor (#3623) 4 years ago
loki.go [promtail] Refactor promtail client metrics so that we can't have duplicate metrics collected for the lag metric. (#5521) 3 years ago
loki_test.go fluent-bit: Attempt to unmarshal nested json. (#5223) 3 years ago
out_grafana_loki.go [promtail] Refactor promtail client metrics so that we can't have duplicate metrics collected for the lag metric. (#5521) 3 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.16+
  • gcc (for cgo)

To build the output plugin library file (out_grafana_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.