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 bind 0.0.0.0
</source> </source>
<source>
@type monitor_agent
bind 0.0.0.0
port 24220
tag fluentd.monitor.*
</source>
<filter docker.**> <filter docker.**>
@type parser @type grep
key_name log <regexp>
reserve_data true key log
<parse> pattern /Rocket has launched/
@type regexp </regexp>
expression /(?<message>.*Rocket has launched.*)/
</parse>
</filter> </filter>
<match docker.**> <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 @type stdout
</match> </match>