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>
|
|
|
|
|
2024-10-28 11:44:26 +00:00
|
|
|
<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
|
|
|
|
|
2024-02-03 09:10:57 +00:00
|
|
|
# endpoint http://ingestor:3400/ingestor/fluentd/v1/logs # This is if you're testing in local development
|
2024-10-28 11:44:26 +00:00
|
|
|
endpoint https://oneuptime.com/fluentd/logs # This is for prod environment
|
2024-02-02 12:21:29 +00:00
|
|
|
open_timeout 2
|
2024-10-28 11:44:26 +00:00
|
|
|
# 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
|
|
|
|
2024-02-02 12:59:23 +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>
|
|
|
|
|