mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Add CRI container log format support back.
This commit is contained in:
parent
c8841cea30
commit
db110f1b71
@ -117,8 +117,19 @@ data:
|
|||||||
pos_file /var/log/es-containers.log.pos
|
pos_file /var/log/es-containers.log.pos
|
||||||
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
||||||
tag raw.kubernetes.*
|
tag raw.kubernetes.*
|
||||||
format json
|
|
||||||
read_from_head true
|
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>
|
</source>
|
||||||
|
|
||||||
# Detect exceptions in the log output and forward them as one log entry.
|
# Detect exceptions in the log output and forward them as one log entry.
|
||||||
|
Loading…
Reference in New Issue
Block a user