You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/logging-infrastructure/fluentbit.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,35 @@ The following sections show you some examples on configuring Fluent Bit. For the
96
96
97
97
> Note: These examples use the traditional method that configures the Fluent Bit deployment using **spec.fluentbit** section of {{% xref "/docs/logging-infrastructure/logging.md" %}}.
98
98
99
+
## Containerd log fields
100
+
101
+
The following example defines a custom Fluent Bit parser that places the parsed containerd log messages into the `log` field instead of the `message` field to be backwards compatible with docker container runtimes.
102
+
103
+
```yaml
104
+
apiVersion: logging.banzaicloud.io/v1beta1
105
+
kind: FluentbitAgent
106
+
metadata:
107
+
name: containerd
108
+
spec:
109
+
inputTail:
110
+
Parser: cri-log-key
111
+
# Parser that populates `log` instead of `message` to enable the Kubernetes filter's Merge_Log feature to work
112
+
# Mind the indentation, otherwise Fluent Bit will parse the whole message into the `log` key
0 commit comments