Update docker/fluentd/fluent.conf

This commit is contained in:
colin 2024-04-16 13:28:08 +00:00
parent 37b8365df6
commit 6e06df2aa6
1 changed files with 5 additions and 28 deletions

View File

@ -8,37 +8,14 @@
bind 0.0.0.0
</source>
<source>
@type monitor_agent
bind 0.0.0.0
port 24220
tag fluentd.monitor.*
</source>
<filter docker.**>
@type parser
key_name log
reserve_data true
<parse>
@type regexp
expression /(?<message>.*Rocket has launched.*)/
</parse>
@type grep
<regexp>
key log
pattern /Rocket has launched/
</regexp>
</filter>
<match docker.**>
@type http
endpoint_url "https://glitch.nixc.us/api/5/security/?glitchtip_key=b4a0501ad2264d5b84054f8222628adc"
http_method post
serializer json
<buffer>
flush_interval 10s
</buffer>
<format>
@type json
</format>
headers {"Content-Type":"application/json"}
</match>
<match fluentd.monitor.**>
@type stdout
</match>