Update docker/fluentd/fluent.conf
This commit is contained in:
parent
964e78c6db
commit
6645b07e24
|
@ -9,19 +9,19 @@
|
||||||
key_name log
|
key_name log
|
||||||
reserve_data true
|
reserve_data true
|
||||||
<parse>
|
<parse>
|
||||||
@type json # Assuming logs are in JSON format
|
@type regexp
|
||||||
|
expression /^(?<message>.*\b(SIGTERM|ERROR|FATAL|CRITICAL|exception|failed|failure)\b.*)$/i
|
||||||
</parse>
|
</parse>
|
||||||
<rule>
|
|
||||||
key message
|
|
||||||
pattern /ERROR|FATAL|CRITICAL|exception|failed|failure/i
|
|
||||||
tag docker.errors
|
|
||||||
</rule>
|
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<match docker.errors>
|
<match **>
|
||||||
@type exec
|
@type exec
|
||||||
command "/go-glitch"
|
command "/go-glitch"
|
||||||
<buffer>
|
<buffer>
|
||||||
flush_interval 10s
|
flush_interval 10s
|
||||||
</buffer>
|
</buffer>
|
||||||
|
<format>
|
||||||
|
@type json
|
||||||
|
</format>
|
||||||
|
run_interval 10s
|
||||||
</match>
|
</match>
|
||||||
|
|
Loading…
Reference in New Issue