github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/clients/cmd/fluent-bit/README.md (about)

     1  # Fluent Bit output plugin
     2  
     3  [Fluent Bit](https://fluentbit.io/) is a Fast and Lightweight Data Forwarder, it can be configured with the [Loki output plugin](https://fluentbit.io/documentation/0.12/output/) to ship logs to Loki. You can define which log files you want to collect using the [`Tail`](https://fluentbit.io/documentation/0.12/input/tail.html) or [`Stdin`](https://docs.fluentbit.io/manual/pipeline/inputs/standard-input) [input plugin](https://fluentbit.io/documentation/0.12/getting_started/input.html). Additionally Fluent Bit supports multiple `Filter` and `Parser` plugins (`Kubernetes`, `JSON`, etc..) to structure and alter log lines.
     4  
     5  This plugin is implemented with [Fluent Bit's Go plugin](https://github.com/fluent/fluent-bit-go) interface. It pushes logs to Loki using a GRPC connection.
     6  
     7  > syslog and systemd input plugin have not been tested yet, feedback appreciated.
     8  
     9  ## Building
    10  
    11  Prerequisites:
    12  
    13  * Go 1.16+
    14  * gcc (for cgo)
    15  
    16  To build the output plugin library file (`out_grafana_loki.so`), you can use:
    17  
    18  ```bash
    19  make fluent-bit-plugin
    20  ```
    21  
    22  You can also build the docker image with the plugin pre-installed using:
    23  
    24  ```bash
    25  make fluent-bit-image
    26  ```
    27  
    28  Finally if you want to test you can use `make fluent-bit-test` to send some logs to your local Loki instance.