Unverified Commit ddc056fb authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #62082 from Random-Liu/automated-cherry-pick-of-#61818-upstream-release-1.10

Automatic merge from submit-queue. Automated cherry pick of #61818: Add CRI container log format support back. Cherry pick of #61818 on release-1.10. #61818: Add CRI container log format support back.
parents 9e946a05 47538618
......@@ -117,8 +117,19 @@ data:
pos_file /var/log/es-containers.log.pos
time_format %Y-%m-%dT%H:%M:%S.%NZ
tag raw.kubernetes.*
format json
read_from_head true
<parse>
@type multi_format
<pattern>
format json
time_key time
time_format %Y-%m-%dT%H:%M:%S.%NZ
</pattern>
<pattern>
format /^(?<time>.+) (?<stream>stdout|stderr) [^ ]* (?<log>.*)$/
time_format %Y-%m-%dT%H:%M:%S.%N%:z
</pattern>
</parse>
</source>
# Detect exceptions in the log output and forward them as one log entry.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment