Update docker/fluentd/fluent.conf

This commit is contained in:
colin 2024-04-16 17:35:17 +00:00
parent 758575e4b4
commit f30c9e51b0
1 changed files with 3 additions and 4 deletions

View File

@ -14,14 +14,13 @@
reserve_data true
<parse>
@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>
</filter>
<match **>
@type exec
command "/go-glitch"
command "/go-glitch '${record['message']}'"
<buffer>
flush_interval 10s
</buffer>
@ -29,4 +28,4 @@
@type json
</format>
run_interval 10s
</match>
</match>