Vector
Tailcove's ingest endpoint accepts Vector's http
sink output directly, no VRL remapping required for the common case.
Point the sink at your source's ingest URL with a JSON codec and Vector's
default event fields (message, timestamp, host) land on the right
side of the normalized line shape
automatically.
2 min read
On this page4 sections
To collect a server's log files from scratch, follow the Vector log collection guide.
Minimal config#
[sources.app_logs]
type = "file"
include = ["/var/log/myapp/*.log"]
[sinks.tailcove]
type = "http"
inputs = ["app_logs"]
uri = "https://ingest.tailcove.dev/api/v1/logs"
method = "post"
auth.strategy = "bearer"
auth.token = "YOUR_INGEST_TOKEN"
[sinks.tailcove.encoding]
codec = "json"
With encoding.codec = "json", the http sink's default framing sends one
JSON object per line (NDJSON), exactly one of the payload shapes the
ingest endpoint auto-detects, so no framing config is needed.
A file-source event like this:
{
"message": "Payment failed for order 8213",
"timestamp": "2026-07-05T10:15:00.123456Z",
"host": "web-1",
"source_type": "file",
"file": "/var/log/myapp/app.log"
}
is normalized to message, ts (from timestamp), and host without any
transform; source_type and file are simply ignored, since they aren't
part of the normalized shape. See the field mapping table
for the full list of aliases the normalizer understands.
Adding a level#
Vector events have no level field by default; add one with a remap
transform if your source doesn't already carry one:
[transforms.add_level]
type = "remap"
inputs = ["app_logs"]
source = '''
.level = "info"
if contains!(.message, "ERROR") {
.level = "error"
}
'''
[sinks.tailcove]
inputs = ["add_level"]
# ...same sink config as above
level and severity are both recognized field names; use whichever a
remap transform or an upstream source already produces.
Batching#
Vector batches internally before flushing to the http sink; the ingest
endpoint additionally accepts up to 1000 lines per request, so there's no
need to tune Vector's own batch.max_events down to 1. A reasonable
starting point:
[sinks.tailcove.batch]
max_events = 500
timeout_secs = 2
Alternative: the custom token header#
If you'd rather not configure auth.strategy = "bearer", the ingest
endpoint accepts the same token via a plain header instead:
[sinks.tailcove.request.headers]
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.