File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1492,7 +1492,7 @@ function Install_Containerd {
1492
1492
# Register and start containerd service.
1493
1493
function Start_Containerd {
1494
1494
Log- Output " Creating containerd service"
1495
- containerd.exe -- register-service
1495
+ containerd.exe -- register-service -- log - file ${ env: LOGS_DIR} / containerd.log
1496
1496
Log- Output " Starting containerd service"
1497
1497
Start-Service containerd
1498
1498
}
@@ -1712,6 +1712,20 @@ $FLUENTD_CONFIG = @'
1712
1712
tag kube-proxy
1713
1713
</source>
1714
1714
1715
+ # Example:
1716
+ # time="2019-12-10T21:27:59.836946700Z" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1
1717
+ <source>
1718
+ @type tail
1719
+ format multiline
1720
+ multiline_flush_interval 5s
1721
+ format_firstline /^time=/
1722
+ format1 /^time="(?<time>[^ ]*)" level=(?<severity>\w*) (?<message>.*)/
1723
+ time_format %Y-%m-%dT%H:%M:%S.%N%z
1724
+ path /etc/kubernetes/logs/containerd.log
1725
+ pos_file /etc/kubernetes/logs/gcp-containerd.log.pos
1726
+ tag container-runtime
1727
+ </source>
1728
+
1715
1729
<match reform.**>
1716
1730
@type record_reformer
1717
1731
enable_ruby true
You can’t perform that action at this time.
0 commit comments