-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make lua scripts
code
and script
not required
Signed-off-by: Onecer <[email protected]>
- Loading branch information
Showing
13 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
charts/fluent-operator/templates/fluentbit-clusterfilter-multiline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.Kubernetes -}} | ||
{{- if .Values.fluentbit.enable -}} | ||
{{- if .Values.fluentbit.filter.multiline.enable -}} | ||
apiVersion: fluentbit.fluent.io/v1alpha2 | ||
kind: ClusterFilter | ||
metadata: | ||
name: multiline | ||
labels: | ||
fluentbit.fluent.io/enabled: "true" | ||
fluentbit.fluent.io/component: logging | ||
spec: | ||
match: kube.* | ||
filters: | ||
- multiline: | ||
keyContent: {{ .Values.fluentbit.filter.multiline.keyContent | quote }} | ||
parser: "{{- join "," .Values.fluentbit.filter.multiline.parsers -}}" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
charts/fluent-operator/templates/fluentbit-multilineParser-javaMultiline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if .Values.Kubernetes -}} | ||
{{- if .Values.fluentbit.enable -}} | ||
{{- if .Values.fluentbit.parsers.javaMultiline.enable -}} | ||
apiVersion: fluentbit.fluent.io/v1alpha2 | ||
kind: ClusterMultilineParser | ||
metadata: | ||
name: java-multiline | ||
labels: | ||
fluentbit.fluent.io/enabled: "true" | ||
fluentbit.fluent.io/component: logging | ||
spec: | ||
type: "regex" | ||
flushTimeout: 1000 | ||
keyContent: "log" | ||
rules: | ||
- start: "start_state" | ||
regex: '/\[?(\d+\-\d+\-\d+ \d+\:\d+\:\d+(\.\d+)?)\]? /' | ||
next: "cont" | ||
- start: "cont" | ||
regex: '/^(?!\[?\d+\-\d+\-\d+).*/' | ||
next: "cont" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
config/samples/fluentbit_v1alpha2_clustermultilineparser.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: fluentbit.fluent.io/v1alpha2 | ||
kind: ClusterMultilineParser | ||
metadata: | ||
name: java-multiline | ||
labels: | ||
fluentbit.fluent.io/enabled: "true" | ||
fluentbit.fluent.io/component: logging | ||
spec: | ||
type: "regex" | ||
flushTimeout: 1000 | ||
keyContent: "log" | ||
rules: | ||
- start: "start_state" | ||
regex: '/\[?(\d+\-\d+\-\d+ \d+\:\d+\:\d+(\.\d+)?)\]? /' | ||
next: "cont" | ||
- start: "cont" | ||
regex: '/^(?!\[?\d+\-\d+\-\d+).*/' | ||
next: "cont" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters