CLI
The CLI runs the 10x Engine against your log files locally to preview cost savings, validate configs, and test custom JavaScript before you deploy.
MCP can run this for you
If you've installed the MCP Server, ask your AI assistant to preview savings. MCP fetches the CLI, runs it against your logs, and returns a structured cost analysis. You don't install the CLI manually.
Workflow
The CLI processes log files locally on your development machine to preview optimization results and validate configurations before production deployment.
graph LR
A["<div style='font-size: 14px;'>💻 Local Machine</div><div style='font-size: 10px; text-align: center;'>Load Files</div>"] --> B["<div style='font-size: 14px;'>🔄 Transform</div><div style='font-size: 10px; text-align: center;'>into TenXObjects</div>"]
B --> C["<div style='font-size: 14px;'>🎁 Enrich</div><div style='font-size: 10px; text-align: center;'>Add Context</div>"]
C --> D["<div style='font-size: 14px;'>📊 Aggregate</div><div style='font-size: 10px; text-align: center;'>Group by Cost</div>"]
C --> E["<div style='font-size: 14px;'>🗜️ Compact</div><div style='font-size: 10px; text-align: center;'>Write to File</div>"]
E --> G["<div style='font-size: 14px;'>🔓 Expand</div><div style='font-size: 10px; text-align: center;'>Expand Events</div>"]
D --> F["<div style='font-size: 14px;'>📈 Report</div><div style='font-size: 10px; text-align: center;'>Generate Analysis</div>"]
classDef local fill:#7c3aed88,stroke:#6d28d9,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef transform fill:#2563eb88,stroke:#1d4ed8,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef enrich fill:#059669,stroke:#047857,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef aggregate fill:#ea580c88,stroke:#c2410c,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef encode fill:#f59e0b,stroke:#d97706,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef decode fill:#ec4899,stroke:#db2777,color:#ffffff,stroke-width:2px,rx:8,ry:8
classDef report fill:#16a34a88,stroke:#15803d,color:#ffffff,stroke-width:2px,rx:8,ry:8
class A local
class B transform
class C enrich
class D aggregate
class E encode
class F report
class G decode
💻 Local Machine: Loads log files from your local filesystem or receives events via stdin for processing
🔄 Transform: Structures raw log events into well-defined TenXObjects using symbol libraries
🎁 Enrich: Applies enrichment rules to augment events with intelligent context and classifications
📊 Aggregate: Groups TenXObjects by symbol message to show data volume per event type
📈 Report: Generates cost analysis tables showing optimization opportunities and potential savings
🗜️ Compact: Creates compact output files demonstrating volume reduction results
🔓 Expand: Expands compact events perfectly using TenXTemplates for validation
Preview Cost Savings
Preview your own log files or sample logs locally. The CLI aggregates events to show exact data volume per event type, a risk-free preview of the information used to power edge and cloud apps.
After running, generate a shareable URL to visualize results in an interactive dashboard with ROI calculator and pattern analysis.
Production Use
Production apps generate similar reports at runtime at the edge and in the cloud:
Reporter
The Reporter app enables licensing cost optimization by pinpointing the highest-cost app/infra event types before they ship to log analyzers (e.g., Splunk, Datadog, Elastic).
It deploys as a DaemonSet alongside your forwarder, not in the critical log path, and captures cost insight metrics pre-SIEM. For agentless SIEM-side analysis without deploying a DaemonSet, use the MCP server's SIEM-sample tool.
Prometheus-compliant REST APIs enable AI/ML processing, alerting and automation.
Receiver, Filter mode
The Receiver app prevents over-billing in Filter mode by enforcing precise policies that drop 'noisy' log events before they ship to log analyzers.
Receiver, Compact mode
The CLI demonstrates real-world savings offered by the Receiver in Compact mode in production environments.
Optimizing OpenTelemetry k8s sample logs files demonstrates 65% lossless volume reduction:
| Metric | Sample Logs | Encoded.log | Templates.json |
|---|---|---|---|
| Size | 205 MB | 71.3 MB | 9.1 MB |
The encoded.log output file containing lossless compact events weighs 71.3 MB (65% reduction from 205 MB).
The templates.json file contains unique TenXTemplates (reusable patterns), enabling the 10x Engine to expand compact events perfectly.
To test expanding simply swap the input files with encoded.log and run the app again. View expanded events in the output decoded.log file.
Retriever
The Retriever app reduces licensing costs by expanding and delivering selected events from low-cost storage (e.g., S3) to log analyzers (e.g., Splunk) and time-series Dbs (e.g., Datadog) periodically or on-demand.
Write Custom JS Logic
Write and test custom JavaScript to further enrich, filter and output TenXObjects with real log data using the JavaScript API. Catch errors and validate rules locally before production deployment.
Build Custom Integrations
Extend the polyglot compiler with new languages or build custom runtime modules to integrate additional log forwarder, analyzer and storage types. Test locally before deployment or community contribution.
This app is defined in dev/app.yaml.




