mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
42 lines
853 B
Plaintext
42 lines
853 B
Plaintext
####
|
|
## Source descriptions:
|
|
##
|
|
|
|
## built-in TCP input
|
|
## @see https://docs.fluentd.org/input/forward
|
|
<source>
|
|
@type forward
|
|
port 24224
|
|
bind 0.0.0.0
|
|
</source>
|
|
|
|
<source>
|
|
@type http
|
|
port 8888
|
|
bind 0.0.0.0
|
|
body_size_limit 32m
|
|
keepalive_timeout 10s
|
|
</source>
|
|
|
|
# Match all patterns
|
|
<match **>
|
|
@type http
|
|
|
|
# endpoint http://ingestor:3400/ingestor/fluentd/v1/logs # This is if you're testing in local development
|
|
endpoint https://oneuptime.com/fluentd/logs # This is for prod environment
|
|
open_timeout 2
|
|
# Please make sure you change the token and service name to your own
|
|
headers {"x-oneuptime-token":"caf42a30-8ace-11ef-b10a-eb9302809cb8", "x-oneuptime-service-name": "fluentd-logs"}
|
|
|
|
content_type application/json
|
|
json_array true
|
|
|
|
<format>
|
|
@type json
|
|
</format>
|
|
<buffer>
|
|
flush_interval 10s
|
|
</buffer>
|
|
</match>
|
|
|