-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log Forwarding: enable forwarding of mariadb error logs
Change-Id: Ifcc2397e3de6125cc219c61f17a590cd84b22580
- Loading branch information
Showing
3 changed files
with
103 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[SERVICE] | ||
http_server On | ||
http_port 2020 | ||
log_level debug | ||
[INPUT] | ||
name tail | ||
tag ${K8S_NAMESPACE}.${K8S_NODENAME}.${K8S_PODNAME}.mariadb | ||
path /watch/*.log | ||
path_key full_path | ||
refresh_interval 5 | ||
read_from_head True | ||
db /watch/mariadb_fluentbit.db | ||
[FILTER] | ||
name modify | ||
match * | ||
add namespace ${K8S_NAMESPACE} | ||
add nodeName ${K8S_NODENAME} | ||
add podName ${K8S_PODNAME} | ||
add ip ${K8S_PODIP} | ||
add labels_run mariadb | ||
add component mariadb | ||
{{- range .ExtraKeys }} | ||
add {{ .Key }} ${K8S_{{ .Value -}}} | ||
{{- end }} | ||
[OUTPUT] | ||
name stdout | ||
match * | ||
format json_lines | ||
[OUTPUT] | ||
name http | ||
match * | ||
uri /${K8S_NAMESPACE}.${K8S_NODENAME}.${K8S_PODNAME}.mariadb | ||
format json | ||
host {{ .FluentBitHTTPInputHost }} | ||
port {{ .FluentBitHTTPInputPort }} |
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