Ingest Setup

Tailstream accepts log events over HTTP using Newline Delimited JSON.

Quick Start

  1. Copy your credentials. Use the endpoint URL and token from your stream's setup page in your log shipper configuration.
  2. Configure your log shipper. Refer to the examples below (cURL, Nginx + Vector, Laravel).
  3. Start sending logs. Deploy your configuration and watch your HTTP requests appear in real time.

Required settings

  • Endpoint: https://tailstream.io/api/ingest/{streamId}
  • Authorization: Bearer <INGEST_JWT>
  • Content-Type: application/x-ndjson
  • Compression (optional): Content-Encoding: gzip

What to send

Send newline-delimited JSON (NDJSON). Each line is one event. You can include any fields, but these are commonly useful:

Field Type Notes
host string Required. Host/service name.
path string Required. Request path or resource.
method string Required. HTTP method.
status integer Required. HTTP status code.
rt number Required. Response time in seconds (e.g., 0.047).
bytes integer Required. Response size.
src string Required. Source identifier (e.g., container id).
ts integer Epoch ms. Auto-generated if not provided.

Configuration examples

Use the tabs below to see working configurations for cURL, Nginx + Vector, and Laravel. Replace {streamId} and <INGEST_JWT> with your values.

Rotate your ingest token regularly and reload your services after updating credentials. For full API details, see the API overview and endpoint reference.

Configuration examples