epok
View as Markdown

Limits, quotas and error codes

Updated Nov 22, 2026 · today

Every number on this page comes from a configuration key in the running system. Where enforcement differs from what a header or a marketing sentence implies, this page says so, because you should find out here rather than at 3am.

Read this first: there are two body caps, not one

The single most common surprise is a batch size that works against one endpoint and 413s against another. The caps are different because the planes are different services:

PlaneCapApplies to
Logs & traces
/api/v1/ingest, /v1/logs, /v1/traces, _bulk, loki, syslog, and every shipper endpoint
2 MBChecked twice: the compressed body as it arrives, and the decompressed body. A 1.5 MB gzip that expands to 9 MB is rejected. Configurable per deployment via max_body_size_mb; the default is 2.
Metrics
/v1/metrics
8 MBMeasured after gzip decompression. Rejection detail reads metrics payload too large (8MB cap).
Prometheus remote write
/api/v1/write
8 MB / 64 MB8 MB compressed on the wire, 64 MB after decompression, and a separate ceiling of 500,000 samples per request.

You can work out before you send whether a batch will be accepted: measure the bytes you are about to POST andthe bytes they decompress to, and compare against the row above. Most shippers let you set this directly, for example Vector's batch.max_bytes, Fluent Bit's buffer chunk size. Set it below the cap so that you never reach it.

The billable unit

Bytes of request body accepted at ingest, summed across signals, per UTC day. The meter counts bytes, not events, spans or time series. The daily counter is unified: logs, traces and metrics all meter into one total for your account, so shifting volume from one signal to another does not change what you owe. The counter resets at 00:00 UTC, and it survives restarts on our side. A redeploy does not give you a fresh quota.

Reads are not part of this unit. Searches, dashboards, live tail and alert evaluation cost nothing by volume; they are bounded only by the query rate limit below.

Per-plan limits

Scroll sideways for every column.

PlanIngest rate (entries)Daily ceiling (default)Query rateRetention
Observe trial1,000 entries/s, 5,000 burst, 10,000 per batch25 GB1,200/min14 days
Observe6,000 entries/s, 30,000 burst, 10,000 per batch250 GB1,200/min14 days
Detect (coming soon)6,000 entries/s, 30,000 burst, 10,000 per batch250 GB1,200/min14 days
Investigate (coming soon)6,000 entries/s, 30,000 burst, 10,000 per batch250 GB1,200/min14 days
EnterprisePer contractPer contractUnlimited14 days, longer on a dedicated deployment
Trial expiredIngest blocked0 (ingest blocked)300/min14 days

Trial is capped at 25 GB/day because it has no billing relationship. Paid plans meter every accepted gigabyte and carry a 250 GB/day default fair-use ceiling. Above 250 GB/day? Contact us and we raise your ceiling, up to 1,000 GB (1 TB) per day depending on average entry size, after a capacity check. Each workspace can send 6,000 entries/s, 30,000 burst, 10,000 per batch (trial: 1,000 entries/s, 5,000 burst, 10,000 per batch). On request: 15,000 entries/s with a 60,000 burst. Over a limit, ingest answers 429 with Retry-After (gRPC: RESOURCE_EXHAUSTED with retry info) and stores nothing, so your shipper backs off and resends. Epok applies back-pressure; it does not drop the data. A batch above the per-batch size is still accepted and counts against your burst.

What the plans gate: Observe and its trial have no detectors and no Epok AI. Detect and Investigate are coming soon and will include the detector catalog; Enterprise features are agreed per contract. Within a plan no detector is sold separately, but each detector still requires its supported signal, minimum history, and eligibility conditions. An expired trial receives no new data; retained data remains readable and ages out under the 14-day window.

Users, API keys and dashboards

A workspace holds your users; each project in it has its own data, API keys and dashboards.

Users cost nothing extra and Observe has no user cap. Each project has up to 20 active API keys, 100 dashboards and 200 saved searches. Each account can have up to 15 live-tail sessions open at once, across all its projects. Detect and Investigate have the same quotas. The Observe trial allows up to 3 users, 5 active API keys and 25dashboards. Disabled and expired keys do not count. Creating a key, dashboard or saved search past its cap, or inviting a user past the trial's cap, returns 403 with the limit in detail.

Field and cardinality limits

No charge for cardinality. Ingest limits apply. High-cardinality values do not change your bill, but ingest enforces the limits below so that one shipper cannot flood a workspace with unique keys. The entry itself is kept unless a row says otherwise.

LimitValueWhat happens
Empty message_msg empty or missingThe entry is dropped and not billed.
Removed ID fieldsrequest_id, req_id, requestid, x-request-id, x_request_id, session_id, sessionid, correlation_id, correlationid, span_id, parent_span_id, transaction_id, txn_idA log field with one of these exact names is removed from the entry at ingest, because its value is unique per request. trace_id is kept, so logs still link to traces. Rename a field you need to keep, for example order_ref.
Fields per log entry50_msg, _time, level and service are always kept. The other fields are kept in the order they arrive until the entry has 50; the rest are dropped.
Field name and value length128 B / 4,096 BLonger names and values are truncated to this many bytes. Fields whose name starts with _ (other than _msg and _time) and empty fields are removed.
Message length64 KiBA longer _msg is cut at this size and ends in ...[TRUNCATED].
High-cardinality label values16+ characters, ID-shapedOn Loki push labels and Firehose common attributes, a value of 16 or more characters that looks like an identifier (a UUID, 32 or more hex or base64 characters, or a short prefix and separator followed by 10 or more characters that include a digit, such as cus_4cf5c277ac15abc) is dropped from the labels. The log line is kept. Loki labels named service, app, job and level are never dropped; short values such as us-east-1 pass through.
Services per workspace10,000Each distinct service value is a log stream. When a workspace first goes past 10,000, new services are still accepted for 24 hours, up to 20,000 services, and the ingest status shows a warning. After that grace period, logs from services not yet seen are dropped; services already seen keep flowing. The grace clock restarts once the workspace is back under the cap.

Put per-request identifiers in the message or in a field with a name not on the list above, and keep service to real service names, not one value per pod or per request.

Ingest rate: entries per second, burst and batch size

Each workspace has a token bucket counted in entries (log lines and spans):

  • Observe trial: 1,000 entries/s sustained, bursts to 5,000, up to 10,000 entries per batch.
  • Observe, Detect and Investigate: 6,000 entries/s sustained, bursts to 30,000, up to 10,000 entries per batch.
  • Raised on request: 15,000 entries/s sustained, bursts to 60,000, with a daily ceiling up to 1,000 GB (1 TB) depending on average entry size, after a capacity check. At about 600 bytes per entry, 15,000 entries/s carries about 780 GB/day. Contact us.

Over a limit, ingest answers 429 with Retry-After (gRPC: RESOURCE_EXHAUSTED with retry info) and stores nothing, so your shipper backs off and resends. Epok applies back-pressure; it does not drop the data. A batch above the per-batch size is still accepted and counts against your burst. Retry-After is the seconds until the batch fits. Nothing in a refused request is stored or billed, so retrying is safe. Keep batches at or under the per-batch size for an even flow: with the OpenTelemetry Collector set send_batch_max_size, with Vector batch.max_events. The recipes in these docs do.

Metrics (OTLP and Prometheus remote write) are limited per request and can also get a 429. Prometheus retries a 429 only when queue_config.retry_on_http_429 is on, where your version has that option. Amazon Data Firehose retries a 429 for its retry duration, then moves the records to its S3 backup bucket. Google Cloud Pub/Sub redelivers with backoff and, if the subscription has a dead-letter topic, moves the message there after its maximum delivery attempts. Epok counts every 429 per workspace and reason; it cannot see records that Firehose or Pub/Sub moved aside, so check their backup bucket and dead-letter topic.

Two shared limiters protect the box: one workspace cannot take more than a set share of its measured ingest capacity, and a platform-wide limiter caps the total. Both answer the same 429 with Retry-After, so a 429 is not always caused by your own traffic.

Daily ceilings and usage billing

Logs, metrics, traces, RUM and replay count toward one unified daily total, measured in accepted bytes with 1 GB = 109 bytes. Trial and free accounts stop at their daily cap (the trial cap is 25 GB/day), because there is no billing relationship. Paid plans meter every accepted gigabyte at the plan rate (Observe $0.10, Detect (coming soon) $0.20, Investigate (coming soon) $0.30) with a monthly minimum credited against usage, up to a daily fair-use ceiling of 250 GB by default; you are warned at 80%, and requests above the ceiling receive a 429 until the day resets.

The default daily fair-use ceiling on usage plans is 250 GB; support raises it on request. Above the applicable hard cap or safety ceiling, ingest returns HTTP 429 until the counter resets at midnight UTC. Detect the daily quota or daily-ceiling message and back off to that reset rather than retrying every minute; the retry snippet below shows the check. Contact support before an expected burst if you need the safety ceiling raised.

A metrics-heavy day consumes the same budget as a log-heavy one. To avoid reaching the final ceiling, raise it with support or reduce low-value volume at the source. Filtering debug logs at the shipper is often the cheapest fix, and the Kubernetes setup shows where to put that filter.

HTTP status codes

Rejections come back in JSON, but in two shapes, and a client that assumes one will crash on the other. Logs and traces return an error slug alongside a detail sentence; the metrics endpoints return detail only, with no error key. Read detail, which is the one field present everywhere, and treat error as optional.

CodeCauseRemedy
400
Bad Request
The body did not parse: malformed NDJSON, a corrupt compressed stream, or a Content-Encoding that is not supported. gzip and snappy are accepted; zstd is accepted on logs, traces and /v1/metrics; deflate and br are rejected by name.Do not retry, because the same bytes will fail again. The detail field names the specific problem. The metrics endpoint accepts both OTLP encodings, JSON and protobuf, so a stock collector's default is fine; a 400 here means the bytes did not parse as either.
401
Unauthorized
No API key was found on the request in any accepted form.Send the key as a header. See Authentication for every accepted form. Not retryable.
403
Forbidden
A key was found but rejected: it is invalid or rotated, its scopes do not include ingest, or the tenant is disabled. Also returned by plan gates (see below).Read the detail: "Invalid API key" and "does not have required scope: ingest" are different problems. Authentication covers both. Not retryable.
413
Payload Too Large
The request body exceeded the plane's cap: 2 MB on logs and traces and 8 MB on metrics. Checked before parsing, and again after decompression.Split the batch. On logs and traces the detail carries both numbers in bytes; on metrics it names the cap only. Not retryable as-is.
429
Too Many Requests
Four different things share this code: the per-tenant rate limiter, the daily volume quota, write-ahead-log pressure and downstream backpressure. The error field distinguishes them: rate_limited, wal_full, or backpressure.Back off on the header for wal_full (10s) and backpressure (5s). For rate_limited, check whether the detail mentions a quota before trusting the header. The retry section shows how.
503
Service Unavailable
Either the key-lookup path could not reach its database and had no cached answer ("Authentication service temporarily unavailable"), or you hit a deliberate plan gate (see below). Gates return 503 with a sentence naming the feature.A 503 whose detail names a feature is not an outage and will not clear on retry. A 503 that mentions authentication is transient, so retry with backoff.
what the rejections actually look like
json
# 429 from the per-tenant rate limiter; clears in seconds
{"error": "rate_limited", "detail": "Rate limit exceeded", "retry_after": 3}

# 429 from the daily volume quota; does NOT clear in 60s despite the header
{"error": "rate_limited",
 "detail": "Daily volume limit exceeded (78383154012 of 78383153152 bytes)",
 "retry_after": 60}

# 429 after the trial expires; no backoff will fix this
{"error": "rate_limited", "detail": "daily ingest quota is 0 for this tier (trial expired) — add a payment method to resume ingest", "retry_after": 60}

# 413 on logs/traces: a COMPRESSED body that expanded past the cap
{"error": "payload_too_large", "detail": "Decompressed size 9437184 exceeds limit 2097152"}

# 413 on logs/traces: an UNCOMPRESSED body over the cap is cut off by the HTTP
# layer before the handler runs, so that one comes back as plain text, not JSON.

# 413 on the metrics endpoints; no "error" slug, just a detail
{"detail": "metrics payload too large (8MB cap)"}

Retrying correctly

Two rules cover almost everything. Never retry a rejection that will not change: 400, 401, 403 and 413 are all deterministic. And read the detail on a 429 before trusting the header, because the quota rejection is the one case where the header points at the wrong horizon.

retry.py
python
import time, random, httpx

API_KEY = "YOUR_API_KEY"

def send(ndjson_batch, *, max_attempts=5):
    """Retry ingest safely. Two things matter: never retry a 4xx that
    won't change (400/401/403/413), and don't trust Retry-After on the
    daily-quota 429 — that quota resets at midnight UTC, not in 60s."""
    for attempt in range(max_attempts):
        r = httpx.post(
            "https://ingest.epok.cloud/api/v1/ingest",
            headers={"X-API-Key": API_KEY},
            content=ndjson_batch,
            timeout=30,
        )
        if r.status_code < 400:
            return r
        if r.status_code in (400, 401, 403, 413):
            raise RuntimeError(f"not retryable: {r.status_code} {r.text}")
        if r.status_code == 429:
            detail = ""
            try:
                detail = r.json().get("detail", "")
            except ValueError:
                pass  # a proxy in front of us answered 429 in its own shape
            # The daily-quota rejection is the one that won't clear on a
            # short backoff. Detect it by the message and stop retrying.
            if "quota" in detail or "Daily volume" in detail:
                raise RuntimeError(f"daily quota: {detail}")
            delay = float(r.headers.get("retry-after", 2 ** attempt))
        else:  # 5xx
            delay = 2 ** attempt
        time.sleep(delay + random.uniform(0, 0.5))
    raise RuntimeError(f"ingest failed after {max_attempts} attempts")

Plan gates that look like outages

Some features are switched off rather than absent, and a disabled feature answers with a 503 or 403, the same codes an outage produces. These are deliberate gates. None of them clear on retry, none of them are worth an incident ticket, and each one names itself in the response so you can tell it apart from a real failure.

EndpointResponseMeans
POST /v1/metrics503 "Metrics ingest not enabled"The metrics data plane is off for your account. Every metrics write path returns this (OTLP, Influx line protocol and Prometheus remote write alike), so a collector will look entirely broken. Logs and traces are unaffected.
POST /v1/rum/replay503 "Session replay not enabled"Replay capture is off. The browser SDK keeps recording and keeps failing to upload; RUM events themselves still arrive, so you get sessions with no replay attached rather than an obvious error.
POST /api/v1/account/projects403 "Multi-project is not enabled"Separate projects (prod / staging under one bill) are off for your account. A second, distinct 403, Project limit reached, means the feature is on but you are at your plan's project count.
AI endpoints403 "not available on your plan"The AI feature set is empty for your tier. This is what an expired trial sees on every AI surface.

The distinguishing test is simple: a 503 whose detail names a feature is a gate; a 503 that mentions authentication or gives no feature name is transient and worth retrying.

Day 15: what happens when the trial ends

The trial runs 14 days from signup. When the clock passes your expiry timestamp, an hourly sweep flips the account to a trial_expired state. This is worth reading before day 15, because the failure mode is loud and it surfaces inside your logging pipeline. Shippers start erroring and it reads like an outage.

Log and trace ingest stops

The expired state carries a daily byte allowance of 0, and zero is treated as blocked, not as unlimited. Every log and trace ingest request returns 429 with this exact string. Grep for it if you are reading a shipper log and wondering what changed:

text
daily ingest quota is 0 for this tier (trial expired) — add a payment method to resume ingest

No amount of backoff clears this. Adding a payment method flips the account back to a paid tier; ingest resumes within about a minute, the time it takes the ingest plane's key cache to pick up the new tier. Data your shipper sent and had rejected during the blocked window is gone unless the shipper itself buffered and replays it, so if you are mid-trial and about to run an important test, convert first.

Reading your data keeps working

The expired state is deliberately not a lockout. It exists so you can still go and look at what you collected while deciding:

  • Search, dashboards and the explorer keep working at a reduced 300 queries/minute instead of 1,200.
  • Detectors keep running on the data you already have. Alerts on existing streams continue to fire.
  • Retention stays at 14 days, the same as during the trial. Nothing is deleted on expiry. Your data ages out on its normal schedule, so you have roughly two more weeks before the oldest of it goes.
  • You keep 3 users, 2 API keys, 2 live-tail sessions, 25 dashboards and 50 saved searches. Converting restores the paid ceilings.

AI switches off entirely. The expired state has an empty AI feature list and a credit budget of zero, so root-cause hypotheses, natural-language query, deep RCA and the rest return the plan-gate 403 above rather than degrading quietly.

AI credits: which limit stops you first

AI features draw on a daily credit budget that resets at 00:00 UTC. Each successful model call uses one credit; one action can make multiple calls. But the two most expensive features carry their own sub-caps inside that budget, and those bind long before the headline number does. Deep RCA is the feature most people want to try first, and on Investigate (coming soon) it stops at 40 while the overall budget still looks four-fifths full.

When credits run out, automatic incident analysis continues: deterministic detection and root-cause ranking do not consume AI credits. New AI-written narratives, Deep RCA and other AI calls pause at their limits. Background and on-demand calls share the same budget; shared service limits also apply.

Scroll sideways for every column.

PlanDaily creditsDeep RCA sub-capPlaybook import sub-cap
Observe trialNo Epok AINot applicableNot applicable
Observe, Detect (coming soon)No Epok AINot applicableNot applicable
Investigate (coming soon)2004020
EnterpriseUnlimitedPer contractPer contract
Trial expired0 (AI off)Not applicableNot applicable

The Observe trial has no detectors or Epok AI. Detect (coming soon) has no Epok AI; when available, connect your own agent and keep your own model bill. Features without a listed sub-cap draw only against the headline number.

Next

  • Authentication: every accepted way to present a key, and how to tell a 401 from a 403.
  • API reference: the endpoints these limits apply to.
  • Kubernetes setup: where to filter volume at the source before it counts against your daily total.
  • Pricing: what each plan costs, alongside the limits above.