From 57e138c88d89802603dda43a3a1951ce17b95a52 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 18 Nov 2019 12:54:36 +0100 Subject: [PATCH] Update README.md --- cmd/fluent-bit/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cmd/fluent-bit/README.md b/cmd/fluent-bit/README.md index 14a8cf3969be7..6f535413155e6 100644 --- a/cmd/fluent-bit/README.md +++ b/cmd/fluent-bit/README.md @@ -78,8 +78,10 @@ To configure the Loki output plugin add this section to fluent-bit.conf Name loki Match * Url http://localhost:3100/loki/api/v1/push - BatchWait 1 # (1sec) - BatchSize 30720 # (30KiB) + BatchWait 1 + # (1sec) + BatchSize 30720 + # (30KiB) Labels {test="fluent-bit-go", lang="Golang"} RemoveKeys key1,key2 LabelKeys key3,key4 @@ -109,6 +111,13 @@ If you have Fluent Bit installed in your `$PATH` you can run the plugin using: fluent-bit -e /path/to/built/out_loki.so -c fluent-bit.conf ``` +You can also adapt your plugins.conf, removing the need to change the command line options: + +``` +[PLUGINS] + Path /path/to/built/out_loki.so +``` + ## Docker You can run a Fluent Bit container with Loki output plugin pre-installed using our [docker hub](https://cloud.docker.com/u/grafana/repository/docker/grafana/fluent-bit-plugin-loki) image: