Retriever
The Retriever ships selected events from low-cost storage (S3, Azure Blobs) to log platforms (Splunk, Datadog, Elastic) or as aggregated metrics to time-series DBs (Prometheus, Datadog) periodically or on demand.
Overview
What is Retriever and how does it work
Retriever is the fetch side of offload-and-fetch, which makes aggressive filtering a safe way to cut the log bill: the engine offloads a pattern to your own S3 or any S3-compatible object storage (MinIO, Ceph), where storage costs a fraction of analyzer ingestion. Retriever indexes that data as it lands in the bucket and fetches selected events back on demand. Data already in Azure Blob Storage is indexed and queried the same way.
When you query, the system scans the index to find which files contain matching data. The Retriever reads only those files and streams the matching events in them back to your log analyzer, or returns them for analysis.
Offloaded events stay reachable in your bucket, so on that volume analyzer ingestion costs apply only to the events you fetch back.
How does Retriever reduce costs
Events offload to your own S3 bucket and come back on demand, so on the offloaded volume analyzer license applies only to the events a fetch returns.
Typical cost reduction is 70-80%, depending on query patterns. See the pricing page for details.
Should I deploy on Kubernetes or Lambda
Both deployments use the same engine image and read the same S3 layout, you can start on one and move to the other without re-indexing. See the deployment picker for the full comparison.
| Lambda | Kubernetes | |
|---|---|---|
| Best for | Bursty query traffic, low ops overhead, pay-per-invocation | Steady high-volume ingest, custom networking, in-cluster neighbors |
| Always-on cost | ~$0 (warm-pool optional via Provisioned Concurrency) | Always-on pods |
| Cold query p50 | ~7 s (sub-10 s with Provisioned Concurrency) | ~2 s |
| Warm query p50 | ~1.2 s | ~1 s |
| Index throughput | SQS batch size + per-function concurrency | HPA on the indexer cluster |
| Event output | Pipeline emits directly to the analyzer | Fluent Bit sidecar in the stream pod |
| Max query time | 15 min (Lambda hard limit) | Unbounded |
Rule of thumb: pick Lambda if queries are infrequent and bursty and you don't want to manage a cluster. Pick Kubernetes if you have steady ingest volume, need >15 min queries, or are already running workloads on k8s.
What are the main use cases
The main use cases are incident investigation, scheduled dashboard population, compliance and audit, and metric aggregation.
Can I pair Retriever with the Receiver
Yes. Configure your forwarder to duplicate events, one copy goes to S3 (all events offloaded to your bucket), the other goes through the Receiver (filtered or compact events to your analyzer). Retriever indexes the offloaded events in S3 and streams selected events back on demand.
This keeps all events in your own S3 bucket, queryable on demand, while only filtered volume reaches your analyzer. Events that the Receiver filters out remain in S3 and are queryable for incident investigation, compliance, and auditing.
Can I pair Retriever with the Receiver's Compact mode
Yes. The Receiver in Compact mode losslessly compacts events at the source, reducing the bytes written to S3. The Retriever fetches the offloaded events back to any platform its Fluent Bit output writes to (Splunk, Elasticsearch, Datadog, CloudWatch, New Relic, Google Cloud Logging, Loki); the bucket holds the events as the Receiver wrote them, full or compact, and the Retriever expands compact events as it streams them, so every destination receives full events. Compact inside the analyzer applies only on Splunk and self-hosted Elasticsearch/OpenSearch, where the expand plugin restores the full event at query time.
Querying and Performance
How do engineers search S3 data
Log10x is normally driven by an AI agent (Claude, or a model the customer brings) through the log10x MCP server, which installs, configures, and queries via MCP tools. The agent calls retriever_query, retriever_series, retriever_query_status, and retriever_probe, and installs the Retriever with advise_retriever. The three manual methods below are the same operations without an agent, all documented on the Query page:
- Web GUI, visual query builder with search expression editor, time range selector, and sample queries.
- CLI, submit queries from the terminal.
- REST API,
POST /streamer/queryvia curl or Postman. Use from scripts, runbooks, or CronJobs.
All three methods produce the same result: the Retriever identifies matching events and streams them to your analyzer (Splunk, Elasticsearch, Datadog, CloudWatch) or time-series database (Prometheus, Datadog, Splunk). Events appear with original timestamps alongside your live data.
How fast is data retrieval
Index lookups identify matching files in under 1 second. Fetching and streaming events typically takes 10–30 seconds for ~10K events with default parallelism. At 100K events, parallel scan/stream workers (up to 1,000 instances) keep total query time near the same 10–30 second baseline rather than growing linearly with result set size. At larger scales, S3 API throughput and network bandwidth are the practical limits.
| Topic | Description |
|---|---|
| Architecture | Parallel scan and stream workers |
| Performance | Baseline numbers, parallelism tuning, and optimization tips |
| Scan config | Timeslice, max instances, and thread settings |
| Stream config | Byte ranges per worker, output endpoints |
| Limits | Processing time and result size caps |
S3 Standard provides immediate access. S3 Glacier requires restore time.
What cloud storage services are supported
Supported storage:
- AWS S3, primary support, most customers deploy here
- Azure Blob Storage on flat-namespace storage accounts, the kind with hierarchical namespace (ADLS Gen2) turned off. Authenticates with workload identity, managed identity, a service principal, an account key, or SAS.
- Any S3-compatible object storage, MinIO, Ceph (RADOS Gateway), Dell ECS, NetApp StorageGRID, Cloudflare R2, Backblaze B2. The retriever talks to the S3 API as a storage interface; any backend that implements it works by configuring the endpoint URL.
Works with your existing bucket structure and log formats: JSON, plain text, and gzipped files. Common storage tiers: S3 Standard ($0.023/GB/month) or S3 Intelligent-Tiering for older data.
Google Cloud Storage works through its S3-compatible API with HMAC keys.
For air-gapped or on-prem environments, MinIO is the most common choice, it runs as containers in Kubernetes with no external dependencies.
Can I run Retriever without AWS
Yes. The Retriever uses the S3 API as its storage interface, so any S3-compatible backend can take the place of AWS.
- Local development: The setup guide uses LocalStack (local S3/SQS emulation) running in Kubernetes. No AWS account needed.
- Production without AWS: Point the Retriever at any S3-compatible endpoint, MinIO, Ceph, GCS (via HMAC keys), Cloudflare R2. Configure the endpoint URL in your deployment.
- SQS alternative: MinIO provides built-in bucket notifications to NATS, Kafka, or webhooks as alternatives to SQS for triggering indexing.
Air-gapped deployments typically use MinIO for both the log bucket and the index bucket, running entirely within the Kubernetes cluster.
Which analyzers can receive streamed data
Native integrations:
- Splunk (HEC)
- Elastic / OpenSearch
- Datadog
- AWS CloudWatch
Generic: Any HTTP endpoint, syslog, or TCP destination. Logs stream with original timestamps preserved.
For Splunk users, the optional Receiver in Compact mode compacts events at the source for an additional reduction in ingestion volume. Events are expanded transparently via the Log10x App at search time.
For self-hosted Elasticsearch 8.17.0 and OpenSearch 2.19.0 users, the L1ES plugin expands compact events at query time. Kibana searches, dashboards, and alerts work unchanged on the original full data.
How does query performance scale with data volume
Horizontally. Scan and stream workers run as independent parallel pods, so throughput grows with worker count until S3 API rate and network bandwidth set the limit.
Indexing (ingest time): S3 event notifications trigger index worker pods via SQS. Each worker processes files independently, no shared state, no coordination. Workers scale horizontally via Kubernetes HPA. Doubling the worker count doubles indexing throughput.
Querying (search time): Parallel scan workers list and filter S3 keys concurrently (up to 1,000 parallel instances by default). Each scan worker covers a time slice of the query range. Matching byte ranges are submitted to parallel stream workers that fetch, transform, and output events.
| Query scope | Scan workers | Behavior |
|---|---|---|
| 10 min range, 1 min timeslice | ~10 parallel | Total time ≈ single-worker baseline (10–30s) |
| 1 hour range, 1 min timeslice | ~60 parallel | Total time stays near baseline, not 6x longer |
| 24 hour range, 1 min timeslice | ~1,000 parallel (capped) | S3 API rate and network bandwidth become the limit |
Indexes live in S3. Index files are Bloom filters stored alongside the log files in S3, and the query system reads them there directly, so S3 is the only index store to run.
Are the counts in a long, high-volume time-series query exact or sampled
For a short window, retriever_series scans every matched event and returns exact counts. For a long, high-volume window (for example 30 days), it switches by default to sampling: it splits the window into sub-windows and reads a sample of each, so the query returns within budget instead of trying to scan everything and aborting. Those counts are then estimates, and a value that appears in only a small slice of one sub-window can be undercounted or missed. The overall shape and the big contributors stay accurate; the long tail and short bursts are where sampling shows.
Control it with the fidelity argument:
auto(default), scan in full for short windows, sample long ones.full, force an exact scan at any length. Heavier, and it can abort on a very large, high-volume window.per_window_sampled, force sampling regardless of window length.
Use auto for trend and top-pattern questions; use full when you need precise totals over a long window and can accept the heavier scan.
Architecture and Indexing
How are S3 indexes built
S3 event notifications trigger index worker pods via SQS. Each worker reads the uploaded file, extracts template hashes and variable values, and writes lightweight Bloom filters to the index bucket, adding less than 1% storage overhead. Each index is built once, when its file is uploaded, and kept as written.
| Topic | Description |
|---|---|
| Workflow | How files are parsed into TenXObjects and written as Bloom filters |
| TenXTemplate Filters | Filter design, volume reduction, and batch retrieval |
| Compute Resources | Pod sizing, autoscaling, and throughput |
| Cost | Pod, S3, and SQS cost breakdown |
| Scaling | HPA, deployment topologies, and backlog handling |
| Accuracy | Bloom filter accuracy and false positive tuning |
What happens if index building falls behind uploads
SQS holds pending work until a worker takes it, within the queue's retention (4 days by default), so every uploaded file is indexed. Index worker pods scale up automatically via HPA, and unindexed files remain queryable (full scan, slower). See the Kubernetes deployment guide for scaling configuration.
Query Limits
How do I prevent accidental over-ingestion when streaming from S3
Retriever enforces automatic cost guardrails on every query to prevent expensive accidents:
Default limits per query: - Processing time: 1 minute max execution, query terminates automatically - Result size: 10 MB max bytes returned, query stops once reached
Examples:
Scenario 1: Quick incident investigation (safe defaults)
curl -X POST http://retriever:8080/streamer/query \
-d '{"from":"now(\"-1h\")","to":"now()","search":"level == \"ERROR\""}'
# Stops automatically after 1 minute or 10 MB, whichever comes first
Scenario 2: Large historical pull (custom limits)
# Configure via Kubernetes values or query config to increase limits if needed:
# queryLimitProcessingTime: 5m # Increase to 5 minutes
# queryLimitResultSize: 500MB # Increase to 500 MB
# Each query can then send up to 500 MB to the analyzer
Safety mechanisms: - Queries stop cleanly at a limit: events streamed before the stop stay in the analyzer, and nothing past the limit is sent - At the default 10 MB limit, 100 queries add at most 1 GB to the analyzer, billed at its own ingestion rate - Limits change only through an explicit config override
Monitoring: - Check query execution logs for "limit exceeded" messages - Monitor S3 scan logs to see how many files matched your query - Set up Kubernetes alerts on retriever pod for failed queries
What happens if a query exceeds its limits
Processing time exceeded (1 minute default): - Query terminates gracefully - Partial results already streamed to analyzer remain ingested - No rollback, the analyzer retains what was sent before timeout - Recommendation: adjust query to use narrower time range or add more filters
Result size exceeded (10 MB default): - Query stops reading more files - All events read so far are streamed to analyzer - Ingested bytes stop at the configured cap - Recommendation: add search filters to narrow scope (e.g., higher log level, specific service)
Both are safe failures, worst case you ingest partial results, not the entire historical dataset. Adjust limits per use case: tight for incident response, looser for scheduled compliance pulls.
Comparisons
How does Retriever compare to Datadog Archives
Datadog offers three tiers for archived data, each with significant trade-offs:
| Archive Search | Flex Logs | Rehydration | Retriever | |
|---|---|---|---|---|
| Method | Scans the time range; lookup and partition attributes skip blocks | Columnar indexes (Husky) | Batch re-index into hot tier | Bloom filter indexes on your S3 |
| Cost | $0.05 to $0.07 per GB scanned (US list) | Datadog-managed storage fees | Full indexing cost on rehydrated volume | S3 storage only, no per-query fees |
| Analytics | None, flat event list, 100K cap, 24hr expiry | Full Datadog analytics | Full (once rehydrated) | Full, in any analyzer you choose |
| Data ownership | Your S3 bucket | Datadog-managed, proprietary format, no export | Your S3 → Datadog hot tier | Your S3 bucket, open formats |
How does Retriever compare to Splunk Federated Search for S3
Splunk's Federated Search for Amazon S3 (GA on Splunk Cloud) queries S3 data via AWS Glue. The search is scan-based, with no indexes.
Key limitations:
- ~100 seconds per TB scanned, 10 TB max per search, 100K event default cap
- Splunk Cloud on AWS only, no Enterprise, no on-prem, no FedRAMP
- Requires AWS Glue Data Catalog (additional AWS cost)
- Licensed via Data Search Units (DSUs), Splunk warns high-frequency use may cost more than native ingestion
Retriever difference:
- Bloom filter indexes skip 99%+ of files, no full-scan pricing or per-TB latency
- Per-query scan size set by your own time and result-size limits
- Works with Splunk Cloud and Enterprise (on-prem)
- Results stream as indexed events with original timestamps, full SPL analytics
- Optional Receiver in Compact mode adds a lossless volume reduction where the destination supports it
How does Retriever compare to Cribl
- Logs stored in your S3 bucket with no management fees
- Queries select files through indexes built at upload time, so retrieval takes seconds rather than minutes
- Results stream to your existing analyzer with no per-GB query fees beyond S3 storage
See What makes 10x different for the general comparison.
Failure Modes and Recovery
What if a Retriever pod crashes
Pod restart, no data loss, stream resumes from last checkpoint:
- During pod crash: Active S3 stream pauses until pod restarts
- Data loss: NO, events remain in S3. Stream resumes from checkpoint on pod restart
- Recovery: Kubernetes restarts pod automatically (typically <30s)
- Impact: Brief gap in streaming. Once pod resumes, events stream normally
Monitoring:
- pod_restart_count > 0, track retriever pod restarts
- Pod status: kubectl get pods -l app=log10x-retriever -n logging
- Stream lag (if applicable): Check metrics for events-behind or S3-scan-lag
A query scanned data but returned 0 events, how do I diagnose it
retriever_query attaches a zero-result funnel to its response (diagnostics_funnel), and retriever_query_status reports the same once a query completes. The funnel walks the five query stages (dispatch → resolve index blobs → bloom scan → exact filter → stream events) and returns a single verdict naming the stage where events dropped out of the result. The common verdicts:
| Verdict | What it means | What to do |
|---|---|---|
EMPTY_RANGE |
The time window mapped to 0 index blobs | Widen the range. If a window you know holds data still maps to 0, the index time-mapping is the cause to trace. |
BLOOM_REJECTED_ALL |
Blobs were scanned; the search value was in none | The value is not indexed for this window. Re-run with no search (match-all) to confirm the blobs hold events, then check what the field actually carries. |
FILTER_NO_MATCH |
Events were fetched; the exact filter dropped them all | The bloom is approximate; the exact filter is the truth. Probe the field's real values; the field or value most likely does not match the data. |
FETCH_EMPTY / PARSE_EMPTY |
Candidates matched, but the object read returned nothing, or returned bytes that parsed to 0 events | The search is not the cause. Check the read bucket and byte range, or the object encoding against the reader. |
DELIVERY_INCOMPLETE |
Events were written but fewer reached you | Re-fetch by queryId. If still short, the result prefix being polled differs from where the writer wrote. |
The scanned = 0 while tasks were submitted case. When the coordinator fanned out subqueries (submittedTasks > 0) but its own scanned counter is 0, the verdict is DISPATCHED_BLIND. In fan-out dispatch the coordinator does no scanning itself, so scanned = 0 means "the coordinator cannot see what the subqueries did", not "nothing was scanned". Re-run the same query over a smaller time range so it runs locally and reports precise per-stage counts.
The count of events actually returned is always authoritative for success, regardless of the coordinator's stage counters.
Does an offload status flag let me fetch the events back
The flag reports routing; retriever_query confirms fetchability. Offload status is read from the metric surface: a pattern reads as offloaded when its routeState="drop" cohort has bytes in the window. That cohort covers both offload-to-S3 (kept in your bucket, fetchable) and hard-drop (filtered out, never written), so an "offloaded" flag places the pattern in the drop/offload cohort, and a fetch shows which of the two it is on.
Hard-dropped events never reach S3. To confirm fetch-back, run retriever_query and act on its result: events returned, or a funnel verdict. When the Retriever is not configured, or the query returns nothing for the pattern, those bytes were hard-dropped or offloaded beyond the Retriever's reach.
Data Portability and Format Independence
Is the compact format proprietary or can I expand independently
The format is open, and open-source tools expand it independently.
The 10x compact format is fully expandable without relying on log10x infrastructure. Multiple open-source expansion tools are available:
1. Splunk App (MIT) - Log10x App, open-source app that automatically expands compact events - Expands compact events at search time
2. Java Library and CLI (MIT)
- 10x Decoder for Java, standalone library and CLI
- Published on Maven Central
- CLI: log10x-decode -t templates.json -f compact.log -o expanded.log
3. Format Specification - Full compact format specification, open, no proprietary algorithms
What this means for your data:
- Your data is yours: All logs remain in your S3 bucket in an expandable format
- No vendor lock-in: You can expand independently at any time
- Exit strategy: Your data stays accessible with or without Log10x
- Compliance: Meets data portability and ownership requirements
What's the exit strategy if I want to stop using Log10x
Your logs are in your S3 bucket on your AWS account, Log10x never had access to them. Stop running the Retriever pods and your data stays where it is. If events were stored in compact form, they can be expanded independently using open-source tools, see the Q above.
What format are the compact events stored in
An open, human-readable format documented in the compact format reference. The Elasticsearch page shows verbose events beside their compact form.