Update docker/fluentd/fluent.conf
This commit is contained in:
parent
c8db88402b
commit
caf8eb0bbf
|
@ -1,39 +1,9 @@
|
|||
<source>
|
||||
@type forward
|
||||
@type http
|
||||
port 24224
|
||||
bind "0.0.0.0"
|
||||
bind 0.0.0.0
|
||||
</source>
|
||||
|
||||
<filter **>
|
||||
@type record_transformer
|
||||
enable_ruby true
|
||||
<record>
|
||||
level error
|
||||
message ${record['log'] || 'default log message'}
|
||||
timestamp ${time.to_s} # Convert Time to String
|
||||
service ${tag_parts[0]}
|
||||
container_image ${tag_parts[1]}
|
||||
</record>
|
||||
remove_keys log
|
||||
</filter>
|
||||
|
||||
|
||||
<match **>
|
||||
@type http
|
||||
endpoint_url "https://glitch.nixc.us/api/5/security/?glitchtip_key=b4a0501ad2264d5b84054f8222628adc"
|
||||
http_method post
|
||||
headers {"Content-Type":"application/json"}
|
||||
<buffer>
|
||||
flush_interval 10s
|
||||
</buffer>
|
||||
<format>
|
||||
@type json
|
||||
</format>
|
||||
@type stdout
|
||||
</match>
|
||||
|
||||
|
||||
<label @FLUENT_LOG>
|
||||
<match fluent.**>
|
||||
@type stdout
|
||||
</match>
|
||||
</label>
|
||||
|
|
Loading…
Reference in New Issue