Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ Follow the steps below to set up Fluent Bit and Grafana Loki:

Follow the instructions below to set up Fluent Bit:

!!! note
Recent versions of Fluent Bit (v1.5.0 and later) include the Loki output plugin by default. You can use the official Fluent Bit binaries without building from source.

1. Download [Fluent Bit](https://fluentbit.io/download/).

2. Extract the downloaded file.
Expand Down Expand Up @@ -197,25 +200,11 @@ Follow the instructions below to set up Fluent Bit:
LineFormat json
LabelMapPath <Location/labelmap.json>
```

4. Follow the instructions below to build the Fluent Bit output plugin before starting Fluent Bit:

1. Clone the [grafana/loki git repository](https://github.com/grafana/loki).
2. To build the Fluent Bit plugin, execute the following command.

`make fluent-bit-plugin`

For more details, see [Fluent Bit Output Plugin readme file](https://github.com/grafana/loki/blob/main/clients/cmd/fluent-bit/README.md#fluent-bit-output-plugin).

3. Copy and save the path of the `out_loki.so` file.

5. Open a new terminal and navigate to the `<FluentBit_Home>` directory.
6. Execute the following command:

!!! tip
Replace `<location of out_loki.so file>` with the path that you copied and saved in the previous step.
4. Open a new terminal and navigate to the `<FluentBit_Home>` directory.
5. Execute the following command:

`fluent-bit -e <location of out_loki.so file> -c <fluentbit.conf file path>`
`fluent-bit -c <fluentbit.conf file path>`

When Fluent Bit is successfully installed, you will see a log message.

Expand Down