Fluent Bit
Fluent Bit
An OUTPUT block for the collector already on your nodes.
Fluent Bit ships to the HTTP endpoint with its built-in http output.
fluent-bit.conf
[OUTPUT]
Name http
Match *
Host api.logstreem.com
Port 443
URI /v1/ingest/api-gateway-prod
Format json_lines
json_date_key _time
json_date_format iso8601
tls On
compress gzip
Header Authorization Bearer ${LOGSTREEM_TOKEN}
Header Content-Type application/x-ndjson
Retry_Limit 5Set json_date_key
Without it Fluent Bit sends its timestamp in a field we do not read, and every event is stamped with arrival time instead. Time-range queries then quietly lie to you.