Skip to content

Commit eb2430f

Browse files
committed
Add FilterGrep in Banzai Logging FluentbitSpec
Signed-off-by: joseacl <[email protected]>
1 parent e14086a commit eb2430f

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

docs/configuration/crds/v1beta1/fluentbit_types.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ DisableVarLibDockerContainers controls whether the /var/lib/docker/containers vo
119119
### filterAws (*FilterAws, optional) {#fluentbitspec-filteraws}
120120

121121

122+
### filterGrep (*FilterGrep, optional) {#fluentbitspec-filtergrep}
123+
124+
122125
### filterKubernetes (FilterKubernetes, optional) {#fluentbitspec-filterkubernetes}
123126

124127
Parameters for Kubernetes metadata filter
@@ -848,6 +851,32 @@ The VPC ID for current EC2 instance. (default:false)
848851
Default: false
849852

850853

854+
## FilterGrep
855+
856+
FilterGrep The Grep Filter plugin
857+
858+
### Exclude ([]string, optional) {#filtergrep-exclude}
859+
860+
Exclude records where the content of KEY matches the regular expression.
861+
862+
863+
### Logical_Op (string, optional) {#filtergrep-logical_op}
864+
865+
Specify a logical operator: AND, OR or legacy (default). In legacy mode the behavior is either AND or OR depending on whether the grep is including (uses AND) or excluding (uses OR). Available from 2.1 or higher. Default: "legacy"
866+
867+
868+
### Match (string, optional) {#filtergrep-match}
869+
870+
Match filtered records (default:*)
871+
872+
Default: *
873+
874+
### Regex ([]string, optional) {#filtergrep-regex}
875+
876+
Keep records where the content of KEY matches the regular expression.
877+
878+
879+
851880
## FilterModify
852881

853882
FilterModify The Modify Filter plugin allows you to change records using rules and conditions.

pkg/sdk/logging/api/v1beta1/fluentbit_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ type FilterGrep struct {
405405

406406
// Specify a logical operator:
407407
// AND, OR or legacy (default).
408-
// In legacy mode the behaviour is either AND or OR depending on whether the grep is including (uses AND) or excluding (uses OR).
408+
// In legacy mode the behavior is either AND or OR depending on whether the grep is including (uses AND) or excluding (uses OR).
409409
// Available from 2.1 or higher.
410410
// Default: "legacy"
411411
//

0 commit comments

Comments
 (0)