fixup
This commit is contained in:
parent
b353a6b576
commit
bdb40341c6
|
@ -4,25 +4,21 @@
|
||||||
bind 0.0.0.0
|
bind 0.0.0.0
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
# Convert raw logs to JSON format
|
|
||||||
<filter **>
|
<filter **>
|
||||||
@type record_transformer
|
@type record_transformer
|
||||||
<record>
|
<record>
|
||||||
level "error"
|
level "error"
|
||||||
message "${record['log']}"
|
message "${record['message']}"
|
||||||
timestamp "${time}"
|
timestamp "${time}"
|
||||||
service "${tag_parts[0]}"
|
service "${tag_parts[0]}"
|
||||||
container_image "${tag_parts[1]}"
|
container_image "${tag_parts[1]}"
|
||||||
</record>
|
</record>
|
||||||
remove_keys "log"
|
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
|
||||||
# Matches logs and forwards them to Sentry
|
|
||||||
<match **>
|
<match **>
|
||||||
@type http
|
@type http
|
||||||
endpoint_url https://glitch.nixc.us/api/5/security/?glitchtip_key=b4a0501ad2264d5b84054f8222628adc
|
endpoint https://glitch.nixc.us/api/5/security/?glitchtip_key=b4a0501ad2264d5b84054f8222628adc
|
||||||
headers {"Content-Type":"application/json"}
|
headers {"Content-Type": "application/json"}
|
||||||
http_method post
|
http_method post
|
||||||
<buffer>
|
<buffer>
|
||||||
flush_interval 10s
|
flush_interval 10s
|
||||||
|
@ -31,7 +27,3 @@
|
||||||
@type json
|
@type json
|
||||||
</format>
|
</format>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
# <match **>
|
|
||||||
# @type stdout
|
|
||||||
# </match>
|
|
Loading…
Reference in New Issue