oneuptime/Fluentd/fluent.conf

42 lines
853 B
Plaintext
Raw Normal View History

2024-02-02 12:21:29 +00:00
####
## 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>
2024-02-02 12:21:29 +00:00
# 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
2024-02-02 12:21:29 +00:00
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"}
2024-02-02 12:21:29 +00:00
content_type application/json
json_array true
2024-02-02 12:21:29 +00:00
<format>
@type json
</format>
<buffer>
flush_interval 10s
</buffer>
</match>