Browse docs
On this page

Fluent Bit

Install Fluent Bit on Linux, tail a file like /var/log/syslog, and ship it here with the built-in http output plugin.

Fluent Bit is a CNCF log shipper, and one of the most widely deployed log agents there is - the default DaemonSet in several managed Kubernetes logging stacks, and a common choice for a bare-metal or VM fleet that just needs something small tailing files. If you already run it, there is nothing new to learn here: this door is Fluent Bit's built-in http output plugin pointed at the same POST /v1/events endpoint the Direct HTTP POST door uses. No new receiver, no bespoke pipeline - once a [FILTER]/[OUTPUT] block lands in your config, its events are indistinguishable from any other door's in the Explorer.

Running on Kubernetes? The output block is the same, but where Fluent Bit runs and how it reaches your log lines is not: see Fluent Bit on Kubernetes (sidecar) for a step-by-step guide, including when to prefer a DaemonSet instead.

Installing Fluent Bit on Linux

Fluent Bit publishes a convenience script that detects your distribution and installs the right package:

Shell
curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh

This is their script, not ours - we never touch your infrastructure. It's worth reading before you pipe it into sh, same as any install script from anywhere. For production, or if you'd rather add their apt/yum repo directly and pin a version, use the per-OS packages linked from Fluent Bit's own install docs.

Either path installs Fluent Bit as a fluent-bit systemd service, config at /etc/fluent-bit/fluent-bit.conf, so it survives a reboot and a config change is just an edit and a restart:

Shell
sudo systemctl restart fluent-bit

Monitoring a file and shipping it here

The tail input plugin watches a file and emits a record per line, the same way tail -f would. To ship an existing log file like /var/log/syslog (swap in whatever path your distribution actually uses - the config below works the same either way), add an [INPUT] and an [OUTPUT] to /etc/fluent-bit/fluent-bit.conf:

INI
[INPUT]
    Name            tail
    Path            /var/log/syslog
    Tag             host.syslog
    DB              /var/log/flb_syslog.db

[OUTPUT]
    Name            http
    Match           host.syslog
    Host            ingest.obistack.com
    Port            443
    URI             /v1/events
    Format          json
    tls             On
    tls.verify      On
    Header          Authorization Bearer ${LOGS_API_KEY}

The same config in the 3.x YAML format:

YAML
inputs:
  - name: tail
    path: /var/log/syslog
    tag: host.syslog
    db: /var/log/flb_syslog.db

outputs:
  - name: http
    match: host.syslog
    host: ingest.obistack.com
    port: 443
    uri: /v1/events
    format: json
    tls: true
    tls.verify: true
    headers:
      Authorization: Bearer ${LOGS_API_KEY}

Fluent Bit only reads its config at startup, so nothing ships until you restart the service to pick up the change:

Shell
sudo systemctl restart fluent-bit

A few things that matter about the [INPUT] half specifically:

  • Tag and Match have to agree. Fluent Bit routes records from an input to an output by matching Tag against the output's Match pattern
    • host.syslog here, or * if you want every input in the file to reach this output. Get them out of sync and Fluent Bit runs cleanly with nothing ever arriving.
  • DB is a checkpoint file, not optional bookkeeping. Without it, a Fluent Bit restart re-tails the file from the beginning and re-sends everything already shipped; with it, Fluent Bit remembers its offset across restarts the way tail -f never has to.
  • /var/log/syslog is usually root- or adm-group-readable only. The systemd service the installer sets up runs as root, so this works out of the box; if you've hardened that service to run as a non-root user, that user needs read access to the file (typically via the adm group) or the input silently reads nothing.

Getting a key

This endpoint takes an ingest key. Create one from Fluent Bit under View all in Connect Your Data: name what's sending the logs, and you get this same block back with a freshly minted key already filled in, plus a live watch for the first event to confirm it arrived. The key is shown once - we store only a hash of it, so it cannot be shown again or regenerated.

Confirming it worked

Reload the config (sudo systemctl restart fluent-bit) and watch Live Tail, or the Connect Your Data panel if you generated the key from there - it polls for the first event and shows it as soon as it lands.

Debugging

If nothing arrives, Fluent Bit's own log is the first place to look - it logs plugin-level errors (connection refused, TLS handshake failures, a non-2xx response from the endpoint) as they happen. If it's running as the systemd service the installer sets up:

Shell
journalctl -u fluent-bit -f

Otherwise, check the path Log_File in [SERVICE] points at, or stderr if neither Log_File nor systemd applies. The default Log_Level (info) is usually enough to see an http output failing; for the full request/response detail, including the actual HTTP status code and body we sent back, raise it in /etc/fluent-bit/fluent-bit.conf and restart the service:

INI
[SERVICE]
    Log_Level    debug

A few failure modes are common enough to check by hand before diving into the log:

  • Tag and Match don't agree. This is the quiet one - Fluent Bit starts cleanly, the [INPUT] reads the file, and the record simply never reaches the [OUTPUT] because the tag never matched. Nothing gets logged as an error, because from Fluent Bit's side nothing went wrong.
  • A 401 in the log means the ingest key is wrong, was pasted with extra whitespace, or was revoked - mint a new one and swap it in.
  • A TLS handshake failure usually means tls.verify is On (the default, and the right setting) against something that isn't a valid certificate for Host - a typo in Host, or a proxy intercepting the connection. Only turn tls.verify Off to confirm that's the cause, and turn it back on again afterwards.
  • Nothing in the log at all, ever points outside Fluent Bit entirely - an outbound firewall or egress rule blocking the host from reaching us.

Tenant Isolation & Data Boundaries

This door reuses POST /v1/events, so it inherits that endpoint's rule exactly: the workspace an event lands in comes from the ingest key in the Authorization header and nothing else. There is no workspace or tenant parameter on this route, and a top-level tenant_id in a record is dropped rather than honoured - Tag/Match only decide which [OUTPUT] a record reaches, never which tenant it lands in, since the key fixes that before the body is read at all. See Tenant Isolation for the full model.