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
// Set an alternative Parser to process record Tag and extract pod_name, namespace_name, container_name and docker_id. The parser must be registered in a parsers file (refer to parser filter-kube-test as an example).
345
345
RegexParserstring`json:"Regex_Parser,omitempty"`
346
-
// Allow Kubernetes Pods to suggest a pre-defined Parser (read more about it in Kubernetes Annotations section) (default:Off)
346
+
/*
347
+
Allow Kubernetes Pods to suggest a pre-defined Parser through annotations.
348
+
(Read more about it in the Kubernetes Annotations section.)
349
+
350
+
Default: Off
351
+
352
+
Important: When enabling this setting, you must also configure
353
+
`inputTail.multiline.parser` with appropriate parsers (typically including `cri` for
354
+
Container Runtime Interface logs). Without this configuration, the annotation-based
355
+
parsing will not work correctly.
356
+
357
+
### Example Configuration
358
+
359
+
```yaml
360
+
apiVersion: logging.banzaicloud.io/v1beta1
361
+
kind: FluentbitAgent
362
+
metadata:
363
+
name: example-fluentbit
364
+
spec:
365
+
inputTail:
366
+
multiline.parser: [cri] # Required when K8S-Logging.Parser is enabled
367
+
filterKubernetes:
368
+
K8S-Logging.Parser: "On"
369
+
Merge_Log_Key: "parsed" # Optional but recommended to prevent key conflicts
370
+
371
+
# Once configured, you can use annotations on your pods:
0 commit comments