The version just before this kinda worked.

This commit is contained in:
colin 2024-04-16 17:58:52 +00:00
parent 1f78f2f393
commit 964e78c6db
1 changed files with 7 additions and 7 deletions

View File

@ -9,19 +9,19 @@
key_name log
reserve_data true
<parse>
@type regexp
expression /^(?<message>.*\b(SIGTERM|ERROR|FATAL|CRITICAL|exception|failed|failure)\b.*)$/i
@type json # Assuming logs are in JSON format
</parse>
<rule>
key message
pattern /ERROR|FATAL|CRITICAL|exception|failed|failure/i
tag docker.errors
</rule>
</filter>
<match **>
<match docker.errors>
@type exec
command "/go-glitch"
<buffer>
flush_interval 10s
</buffer>
<format>
@type json
</format>
run_interval 10s
</match>