Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
940a2104
Commit
940a2104
authored
5 years ago
by
keshavprasadms
Browse files
Options
Download
Patches
Plain Diff
fix: updates to fluent bit
parent
2e066c16
3nodeinstall
3node-2.6.0
release-2.6.0-k8s_9467d13
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kubernetes/helm_charts/logging/fluent-bit/templates/config.yaml
+3
-38
...etes/helm_charts/logging/fluent-bit/templates/config.yaml
kubernetes/helm_charts/logging/fluent-bit/values.j2
+1
-1
kubernetes/helm_charts/logging/fluent-bit/values.j2
with
4 additions
and
39 deletions
+4
-39
kubernetes/helm_charts/logging/fluent-bit/templates/config.yaml
+
3
−
38
View file @
940a2104
...
...
@@ -84,6 +84,7 @@ data:
Key_Name log
Parser envoy
Reserve_Data On
Preserve_Key On
fluent-bit-output.conf
:
|
{
{- if eq .Values.backend.type "test" }}
...
...
@@ -152,46 +153,10 @@ data:
{
{ .Values.rawConfig | indent 4 }}
parsers.conf: |
{
{- if .Values.parsers.regex }}
{
{- range .Values.parsers.regex }}
[PARSER]
Name {{ .name }}
Format regex
Regex {{ .regex }}
{
{- if .timeKey }}
Time_Key {{ .timeKey }}
{
{- end }}
{
{- if .timeFormat }}
Time_Format {{ .timeFormat }}
{
{- end }}
{
{ end }}
{
{- end }}
[PARSER]
Name dockerJson
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
{
{- if .Values.parsers.logfmt }}
{
{- range .Values.parsers.logfmt }}
[PARSER]
Name {{ .name }}
Format logfmt
{
{- if .timeKey }}
Time_Key {{ .timeKey }}
{
{- end }}
{
{- if .timeFormat }}
Time_Format {{ .timeFormat }}
{
{- end }}
{
{- if .extraEntries }}
{
{ .extraEntries | indent 8 }}
{
{- end }}
{
{ end }}
{
{- end }}
{
{- end }}
[PARSER]
Name envoy
Format regex
Regex ^(?<host>[^ ]*) - \[(?<real_ip>[^ ]*)\] - (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*) "(?<referer>[^\"]*)" "(?<agent>[^\"]*)" (?<request_length>[^ ]*) (?<request_time>[^ ]*) \[(?<proxy_upstream_name>[^ ]*)\] (?<upstream_addr>[^ ]*) (?<upstream_response_length>[^ ]*) (?<upstream_response_time>[^ ]*) (?<upstream_status>[^ ]*) (?<last>[^$]*)
Preserve_Key
true
Preserve_Key
On
Reserve_Data On
{
{- end }}
This diff is collapsed.
Click to expand it.
kubernetes/helm_charts/logging/fluent-bit/values.j2
+
1
−
1
View file @
940a2104
...
...
@@ -62,7 +62,7 @@ backend:
replace_dots: "On"
logstash_format: "On"
retry_limit: "False"
time_key: "@timestamp"
time_key: "@timestamp
-fb
"
# Optional username credential for Elastic X-Pack access
http_user:
# Password for user defined in HTTP_User
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets