Fluent Bit
Tailcove's ingest endpoint accepts Fluent Bit's
http output directly. Fluent Bit's tail input names the raw line log
rather than message, and the ingest normalizer recognizes it, so no
record_modifier/nest filter is required just to rename fields. The http
output's default date key, date, is recognized too, so the config below
works with or without Json_Date_Key.
2 min read
On this page4 sections
Minimal config#
[INPUT]
Name tail
Path /var/log/myapp/*.log
Tag app.logs
[OUTPUT]
Name http
Match app.logs
Host ingest.tailcove.dev
Port 443
URI /api/v1/logs
Format json_lines
Json_Date_Key time
Json_Date_Format iso8601
tls On
Header Authorization Bearer YOUR_INGEST_TOKEN
Format json_lines sends one JSON object per line as NDJSON, one of the
payload shapes the ingest endpoint auto-detects. Json_Date_Key time with
iso8601 gives a readable timestamp in the payload; Fluent Bit's own default
(date, an epoch with a fraction) is read just as well. See
Field mapping below.
A record from tail looks like this once Fluent Bit ships it:
{
"time": "2026-07-05T10:15:00.000000Z",
"log": "Payment failed for order 8213",
"host": "web-1"
}
log is normalized to message and time to ts automatically, no
Lua or record_modifier filter needed for either.
Adding a level and host#
tail doesn't add a level or hostname by default. A record_modifier
filter (host) plus a lua/grep-based level from your log format both
work, but the simplest option for a static value per Fluent Bit instance is:
[FILTER]
Name record_modifier
Match app.logs
Record host ${HOSTNAME}
host/hostname and level/severity are both recognized field names.
Field mapping#
| Fluent Bit field | Normalized as | Notes |
|---|---|---|
log |
message |
tail input's default field for the raw line. |
time, timestamp or date |
ts |
Json_Date_Key's value, or Fluent Bit's default date epoch. |
host or hostname |
host |
Add via record_modifier if your input doesn't set one. |
level or severity |
level |
Add via a filter if your log format carries one. |
See the HTTP API Reference for the complete normalized line shape.
Alternative: the custom token header#
If setting an Authorization header through Fluent Bit's config is
awkward in your setup, the ingest endpoint accepts the same token via a
plain custom header instead:
Header X-Tailcove-Token YOUR_INGEST_TOKEN
Use one or the other, not both; see HTTP API Reference.
Still stuck?
Email us and we will help you get it working.