Merge pull request #95169 from jingxu97/sep/log

Add CSI proxy log to fluentd
This commit is contained in:
Kubernetes Prow Robot 2020-09-30 13:54:54 -07:00 committed by GitHub
commit 77512dccea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1773,6 +1773,20 @@ $FLUENTD_CONFIG = @'
tag kube-proxy
</source>
# Example:
# I0928 03:15:50.440223 4880 main.go:51] Starting CSI-Proxy Server ...
<source>
@type tail
format multiline
multiline_flush_interval 5s
format_firstline /^\w\d{4}/
format1 /^(?<severity>\w)(?<time>\d{4} [^\s]*)\s+(?<pid>\d+)\s+(?<source>[^ \]]+)\] (?<message>.*)/
time_format %m%d %H:%M:%S.%N
path /etc/kubernetes/logs/csi-proxy.log
pos_file /etc/kubernetes/logs/gcp-csi-proxy.log.pos
tag csi-proxy
</source>
# Example:
# time="2019-12-10T21:27:59.836946700Z" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1
<source>