From c970d7d7cac813ac174bbc433dd3492a9644e46c Mon Sep 17 00:00:00 2001 From: carlclone <906561974@qq.com> Date: Fri, 11 Nov 2022 17:50:07 +0800 Subject: [PATCH 1/2] add fluentbit mountPath configuration doc --- docs/configuration/fluentbit.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/configuration/fluentbit.md b/docs/configuration/fluentbit.md index 8187950f8..60122fc70 100644 --- a/docs/configuration/fluentbit.md +++ b/docs/configuration/fluentbit.md @@ -52,6 +52,22 @@ spec: controlNamespace: logging ``` +## Log Mount Path + +If the container logs of your k8s cloud provider or deployed k8s environment are not saved in the default directory, you can use the mountPath field to modify. For example: + +```yaml +apiVersion: logging.banzaicloud.io/v1beta1 +kind: Logging +metadata: + name: default-logging-simple +spec: + fluentd: {} + fluentbit: + mountPath: /data/docker/containers + controlNamespace: logging +``` + For the detailed list of available parameters for this plugin, see {{% xref "/docs/one-eye/logging-operator/configuration/crds/v1beta1/fluentbit_types.md#inputtail" %}}. [More Info](https://github.com/fluent/fluent-bit-docs/blob/1.3/input/tail.md). From 8267c46a14923d2e29359d5d80821d17551f11af Mon Sep 17 00:00:00 2001 From: carlclone <906561974@qq.com> Date: Sat, 12 Nov 2022 09:44:50 +0800 Subject: [PATCH 2/2] add fluentbit mountPath configuration doc Co-authored-by: Robert Fekete --- docs/configuration/fluentbit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration/fluentbit.md b/docs/configuration/fluentbit.md index 60122fc70..21e2797df 100644 --- a/docs/configuration/fluentbit.md +++ b/docs/configuration/fluentbit.md @@ -54,7 +54,7 @@ spec: ## Log Mount Path -If the container logs of your k8s cloud provider or deployed k8s environment are not saved in the default directory, you can use the mountPath field to modify. For example: +If the container logs of your k8s cloud provider or deployed k8s environment are not saved in the default directory, set the `mountPath` field to the path where they are saved. For example: ```yaml apiVersion: logging.banzaicloud.io/v1beta1