Skip to content

Commit

Permalink
Merge branch 'improvement/backport-fluentbit-parser' into tmp/octopus…
Browse files Browse the repository at this point in the history
…/w/2.7/improvement/backport-fluentbit-parser
  • Loading branch information
bert-e committed Apr 7, 2021
2 parents b7d7177 + bb1c50b commit 2b09006
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions salt/metalk8s/addons/logging/fluent-bit/deployed/configmap.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Create fluent-bit ConfigMap:
Name tail
Tag kube.*
Path /var/log/containers/*.log
Parser docker
Parser container
DB /run/fluent-bit/flb_kube.db
Mem_Buf_Limit 5MB
[INPUT]
Expand Down Expand Up @@ -76,6 +76,10 @@ Create fluent-bit ConfigMap:
Remove BOOT_ID
Remove UID
Remove GID
[FILTER]
Name modify
Match kube.*
Remove logtag
{%- for index in range(loki.spec.deployment.replicas) %}
[Output]
Name loki
Expand Down Expand Up @@ -109,7 +113,9 @@ Create fluent-bit ConfigMap:
}
parsers.conf: |-
[PARSER]
Name docker
Format json
Name container
Format regex
Regex ^(?<time>[^ ]+) (?<stream>stdout|stderr) (?<logtag>[^ ]+) (?<message>.+)$
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
Time_Keep Off

0 comments on commit 2b09006

Please sign in to comment.