Logs, metrics and errors
Send logs without code
Your platform or server already has your logs. Point it at Pingwright over HTTPS and they show up in Logs, searchable and ready for alert rules. There's nothing to add to your code and no agent to install or keep up to date.
Logs is a beta feature preview. An owner or admin turns it on under Settings › Feature previews.
| Source | How it sends | Route |
|---|---|---|
| HTTP or curl | JSON from anything | /v1/logs/json |
| Vercel | Log drain | /drains/vercel |
| Heroku | Log drain | /drains/heroku |
| Cloudflare | Logpush job | /drains/cloudflare |
| Fly.io | Fly's log shipper | /v1/logs/json |
| AWS CloudWatch | Subscription filter to Firehose | /drains/firehose |
| Google Cloud | Logging sink to a Pub/Sub push | /drains/gcp |
| Kubernetes | OTel Collector or Fluent Bit, from Helm | /v1/logs, /api/v2/logs |
| Linux servers | journald or rsyslog | /upload, /drains/syslog |
| Vector, Fluent Bit | Their Datadog output | /api/v2/logs |
Every route is on https://ingest.pingwright.app and takes the same ingest key (pwi_…, with Logs allowed). Create one under Settings › Telemetry. Where the sender keeps the URL as you give it, ?service=…&env=… names records that don't carry a service of their own.
The console's Connect a service fills in your key, service and environment for each source below. It then waits for the first line to arrive.
A request may carry up to 130 000 records at the default limits; a larger one is refused with 413, so batch below that. AWS Firehose is the exception: a large delivery is stored, and the ones after it get 429 until the rate catches up, which Firehose retries. A key with Record sender IP on adds the sender's address as client.address to logs sent over HTTP, in Datadog's format or from syslog and journald. Drains (Vercel, Heroku, Cloudflare, AWS, Google Cloud) never get one: the address there would be the platform's.
HTTP or curl
Send one JSON object, a JSON array, or one object per line (NDJSON):
curl -sS -X POST "https://ingest.pingwright.app/v1/logs/json?service=checkout-api&env=production" \
-H "Authorization: Bearer <your-ingest-key>" \
-H "Content-Type: application/json" \
-d '{"level":"info","message":"Deploy finished","attributes":{"version":"1.4.2"}}'Each record needs a message. timestamp, level, service and attributes are optional:
{
"timestamp": "2026-11-16T09:30:00Z",
"level": "error",
"message": "payment declined",
"service": "checkout-api",
"attributes": { "order_id": "A-1042", "http.status_code": 402 }
}The key can also go in an X-Pingwright-Key header. Gzip the body with Content-Encoding: gzip; a request can be up to 5 MiB (16 MiB once decompressed). The answer is 200 with how many records were accepted, rejected and invalid, and a message.
Vercel
In Vercel, open Team Settings › Drains › Add Drain, pick Logs and Custom endpoint, and enter:
URL = https://ingest.pingwright.app/drains/vercel?env=production&verify=<vercel-verify-value>
Format = NDJSON
; Custom headers
Authorization = Bearer <your-ingest-key>Vercel checks the URL before it saves the drain: copy the verification value it shows into the URL as &verify=…. The key stays in the Authorization header. Then choose the projects and environments to send. Function, edge, build and static logs all arrive, named by the Vercel project.
Heroku
One command per app:
heroku drains:add "https://pingwright:<your-ingest-key>@ingest.pingwright.app/drains/heroku?service=my-app&env=production" --app my-appRouter, dyno and app lines arrive as they happen, under the service in ?service= (heroku if you leave it out). Remove the drain with heroku drains:remove <url> --app my-app.
Cloudflare
Create a Logpush job with an HTTP destination. Logpush turns header_ parameters in the destination URL into request headers, so the key goes there:
curl -sS -X POST "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/logpush/jobs" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-H "Content-Type: application/json" \
--data @logpush-job.json{
"name": "pingwright",
"dataset": "http_requests",
"destination_conf": "https://ingest.pingwright.app/drains/cloudflare?service=my-site&env=production&header_Authorization=Bearer%20<your-ingest-key>",
"output_options": { "output_type": "ndjson" },
"enabled": true
}?service= and ?env= override what the records say. For Workers logs, create the same job on /accounts/<account-id>/logpush/jobs with "dataset": "workers_trace_events".
Fly.io
Fly's own log shipper reads the logs of every app in your organization and posts them here. It runs as a small app of its own:
fly launch --no-deploy --copy-config=false --name pingwright-log-shipper --image ghcr.io/superfly/fly-log-shipper:latest
fly secrets set --app pingwright-log-shipper \
ORG=<fly-org-slug> \
ACCESS_TOKEN="$(fly tokens create readonly <fly-org-slug>)" \
HTTP_URL="https://ingest.pingwright.app/v1/logs/json?env=production" \
HTTP_TOKEN=<your-ingest-key>
fly deploy --app pingwright-log-shipperEach Fly app's name becomes its service name.
AWS CloudWatch
Anything that writes to CloudWatch Logs (Lambda, ECS, API Gateway) reaches Pingwright through Amazon Data Firehose. A subscription filter sends a log group to a Firehose stream, and the stream delivers to Pingwright's HTTP endpoint with the ingest key as its access key.
The console builds a CloudFormation template for this: a Firehose stream, the two IAM roles, an S3 bucket for batches Pingwright couldn't take, and the subscription filter. Deploy it with:
aws cloudformation deploy \
--stack-name pingwright-logs \
--template-file pingwright-logs.yaml \
--capabilities CAPABILITY_IAM \
--parameter-overrides LogGroupName=/aws/lambda/my-function PingwrightKey=<your-ingest-key>The part that points at Pingwright:
HttpEndpointDestinationConfiguration:
EndpointConfiguration:
Name: Pingwright
Url: "https://ingest.pingwright.app/drains/firehose?service=my-function&env=production"
AccessKey: !Ref PingwrightKey
RequestConfiguration: { ContentEncoding: GZIP }
BufferingHints: { IntervalInSeconds: 60, SizeInMBs: 3 } # 3 MiB with GZIP on is recommended
S3BackupMode: FailedDataOnlyFirehose buffers for up to a minute before it sends. Pingwright takes up to 5 MiB per delivery and reads it record by record. Firehose base64-encodes each record inside a JSON envelope, so a 3 MiB buffer with GZIP on is recommended. AWS bills Firehose and S3 as usual.
Kubernetes
Container logs live in files on each node, so something has to run on every node to read them. That's an off-the-shelf DaemonSet from a Helm chart, not a Pingwright agent: nothing of ours to install or update.
The OpenTelemetry Collector is the full setup: every pod's logs, plus Kubernetes events (crash loops, OOM kills, failed scheduling) from a second, single-replica release. It's described in Logs › Send logs from Kubernetes; the console's Connect a service › Kubernetes fills in both values files.
Already run Fluent Bit, or prefer it? Its Helm chart tails every container and adds the namespace, pod and container. Point its Datadog output here, with the key from a secret:
kubectl create namespace observability
kubectl -n observability create secret generic pingwright-ingest --from-literal=key=<your-ingest-key>
helm repo add fluent https://fluent.github.io/helm-charts
helm upgrade --install fluent-bit fluent/fluent-bit -n observability -f fluent-bit.yaml# fluent-bit.yaml
env:
- name: PINGWRIGHT_KEY
valueFrom:
secretKeyRef: { name: pingwright-ingest, key: key }
config:
outputs: |
[OUTPUT]
Name datadog
Match kube.*
Host ingest.pingwright.app
Port 443
TLS On
compress gzip
apikey ${PINGWRIGHT_KEY}
dd_source kubernetes
dd_message_key log
dd_tags env:productionOn EKS with Container Insights, the logs are already in CloudWatch: AWS CloudWatch picks them up. On GKE, see Google Cloud.
Google Cloud
Cloud Logging already has the logs of GKE, Cloud Run and Cloud Functions. A log sink sends the ones you pick to a Pub/Sub topic, and a push subscription delivers each message to Pingwright:
export PROJECT=<gcp-project-id>
export NAME=pingwright-logs
gcloud pubsub topics create "$NAME" --project "$PROJECT"
# GKE containers; for Cloud Run use resource.type="cloud_run_revision",
# for Cloud Functions resource.type="cloud_function"
gcloud logging sinks create "$NAME" "pubsub.googleapis.com/projects/$PROJECT/topics/$NAME" \
--project "$PROJECT" --log-filter='resource.type="k8s_container"'
gcloud pubsub topics add-iam-policy-binding "$NAME" --project "$PROJECT" \
--member="$(gcloud logging sinks describe "$NAME" --project "$PROJECT" --format='value(writerIdentity)')" \
--role=roles/pubsub.publisher
gcloud pubsub subscriptions create "$NAME-push" --project "$PROJECT" --topic "$NAME" \
--push-endpoint="https://ingest.pingwright.app/drains/gcp?token=<your-ingest-key>&env=production" \
--ack-deadline=60 --min-retry-delay=10s --max-retry-delay=600sPub/Sub push can't send headers, so this is the one route where the key goes in the URL, as ?token=. Treat the subscription like a secret. Each entry keeps its resource labels (cluster, namespace, pod, Cloud Run service), and the container or Cloud Run service names the service. If Pingwright refuses a message, Pub/Sub retries it for up to 7 days. A message over the organization's quota is acknowledged and dropped, not retried.
Linux servers
journald and rsyslog are already on most Linux servers, so nothing new runs.
journald ships the whole journal (every unit, the kernel, sshd) with systemd-journal-upload:
sudo apt-get install -y systemd-journal-remote# /etc/systemd/journal-upload.conf
[Upload]
URL=https://pingwright:<your-ingest-key>@ingest.pingwright.app
# systemd 254 or newer compresses by default; without this the upload is refused (415)
Compression=nosudo systemctl enable --now systemd-journal-uploadThe unit runs with --save-state, so after a restart it carries on where it stopped instead of sending the journal again. The unit or program becomes the service name, and the host name is kept on each record.
rsyslog 8.2102 or newer, with the omhttp module:
# /etc/rsyslog.d/60-pingwright.conf
module(load="omhttp")
action(
type="omhttp"
server="ingest.pingwright.app"
serverport="443"
usehttps="on"
restpath="drains/syslog?service=web-1&env=production"
httpheaderkey="Authorization"
httpheadervalue="Bearer <your-ingest-key>"
template="RSYSLOG_SyslogProtocol23Format"
batch="on"
batch.format="newline"
queue.type="LinkedList"
action.resumeRetryCount="-1"
)Then sudo systemctl restart rsyslog. syslog-ng's http() destination works the same way, against the same route.
Vector and Fluent Bit
Pingwright accepts Datadog's log intake format at /api/v2/logs, with the ingest key as the API key in the DD-API-KEY header (not a query parameter). Anything that sends to Datadog can send here by changing the host and key:
# vector.toml
[sinks.pingwright]
type = "datadog_logs"
inputs = ["app"]
endpoint = "https://ingest.pingwright.app"
default_api_key = "${PINGWRIGHT_KEY}"
compression = "gzip"# fluent-bit.yaml
pipeline:
outputs:
- name: datadog
match: "*"
host: ingest.pingwright.app
port: 443
tls: on
apikey: ${PINGWRIGHT_KEY}
dd_service: my-service
dd_tags: env:productionDatadog's Lambda forwarder works too: set its intake URL to ingest.pingwright.app and its API key to the ingest key.
Not yet
- Render. Its log streams only speak syslog over TLS, and Pingwright takes HTTPS for now.
- Errors. These sources send logs. With Errors on, an error-level line that carries a stack trace also becomes an issue; for full error tracking use a Sentry SDK.
Metrics have their own list: Send metrics without code.