Update docker/fluentd/fluent.conf
This commit is contained in:
parent
758575e4b4
commit
f30c9e51b0
|
@ -14,14 +14,13 @@
|
||||||
reserve_data true
|
reserve_data true
|
||||||
<parse>
|
<parse>
|
||||||
@type regexp
|
@type regexp
|
||||||
expression /^(?=.*\b(SIGTERM|ERROR|FATAL|CRITICAL|exception|failed|failure)\b).+$/i
|
expression /^(?<message>.*\b(SIGTERM|ERROR|FATAL|CRITICAL|exception|failed|failure)\b.*)$/i
|
||||||
</parse>
|
</parse>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
|
||||||
<match **>
|
<match **>
|
||||||
@type exec
|
@type exec
|
||||||
command "/go-glitch"
|
command "/go-glitch '${record['message']}'"
|
||||||
<buffer>
|
<buffer>
|
||||||
flush_interval 10s
|
flush_interval 10s
|
||||||
</buffer>
|
</buffer>
|
||||||
|
@ -29,4 +28,4 @@
|
||||||
@type json
|
@type json
|
||||||
</format>
|
</format>
|
||||||
run_interval 10s
|
run_interval 10s
|
||||||
</match>
|
</match>
|
||||||
|
|
Loading…
Reference in New Issue