Breaking stuff again, this worked before Im adding two outputs from here out.
This commit is contained in:
parent
c5b3687854
commit
972eda3730
|
@ -4,5 +4,6 @@ USER root
|
|||
COPY go-glitch /
|
||||
RUN chmod 777 /go-glitch
|
||||
COPY fluent.conf /fluentd/etc/
|
||||
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc
|
||||
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc && \
|
||||
gem install fluent-plugin-gelf
|
||||
USER fluent
|
|
@ -8,10 +8,11 @@
|
|||
@type parser
|
||||
key_name log
|
||||
reserve_data true
|
||||
expression /^(?<message>.*)\b(SIGTERM|SEVERE ERROR|FATAL|CRITICAL)\b/i
|
||||
expression /^(?<message>.*)\b(SIGTERM|SEVERE ERROR|FATAL|CRITICAL)\b/i
|
||||
</filter>
|
||||
|
||||
<match docker.**>
|
||||
# Route 1: Errors to Glitchtip
|
||||
<match docker.**> # Matches docker logs containing the severity terms
|
||||
@type exec
|
||||
command "/go-glitch"
|
||||
<buffer>
|
||||
|
@ -22,3 +23,11 @@
|
|||
</format>
|
||||
run_interval 10s
|
||||
</match>
|
||||
|
||||
# Route 2: Unfiltered to stdout
|
||||
<match **> # Catch-all match for logs not matched by the error filter
|
||||
@type copy # Duplicate to prevent original event modification
|
||||
<store>
|
||||
@type stdout
|
||||
</store>
|
||||
</match>
|
Loading…
Reference in New Issue