Search compact logs in Splunk using the 10x app

How Splunk stores fewer bytes and still returns the original log lines.

Share
Splunk Enterprise counts the text of every indexed event toward an ingest license, and in application logs most of that text is the same from one event to the next. 10x stores the repeated text once and sends each event as its values, and the 10x app for Splunk rebuilds the original event at search time. On the Kubernetes logs measured in this post, the same events counted 64% less against the license, and every event came back identical. The app is open source.

Daily license usage usually comes down by removing something. A filter drops events, a mask cuts part of each event, and routing a source to object storage takes it out of the index. Compact events lower the count while every event stays in Splunk, searchable as its original text. For logs like the ones measured here, 100 GB of daily license takes in what would count as about 277 GB sent as written.

How an event gets shorter

A log statement such as log.info("User {} logged in from {}", userId, ip) writes the same sentence each time it runs, with a different time, user and address. 10x stores the sentence once, as a template, and sends each event as a short reference to the template followed by its values:

2026-04-14 10:23:01 INFO admin logged in from 192.168.1.1
~x7Kp2m,1776162181000,admin,192.168.1.1

The first line is the event as the application wrote it. The second is what Splunk indexes and counts. Each template is also sent to Splunk, once, and is counted like any other data.

The Receiver does the encoding where the logs are collected, before they are forwarded to Splunk. The Splunk app in this post is MIT licensed and inspectable end to end. The Receiver is the commercial piece, free on up to 10 nodes.

What Splunk counted against the license

The test sent the same logs to one Splunk Enterprise instance twice on the same license day, as written and compact, through the same Universal Forwarder. The logs are the output of the 36 containers of an OpenTelemetry demo cluster on Kubernetes, and the figures come from Splunk's own license usage log.

The same logsLicense usage
Sent as written100%
Sent compact, templates included36% (63.91% less)

After indexing, all 157,228 compact events were read back out of Splunk through the app and compared with the text that went in, and every one matched. The byte counts, the Splunk settings and a one-command rerun are in the splunk-license benchmark.

Searching compact events

Classic dashboards keep their SPL, and the app expands each panel's search as it runs. In the search bar, Dashboard Studio and saved searches, a search puts the app's tx macro in front of its terms:

index=app_logs `tx` error "payment failed"

An alert created in the app's Compile Alert view is compiled once into an ordinary saved search.

Compact alongside filters and compression

Splunk describes Edge Processor as a way to "filter, mask, and transform data before routing that data to its supported destinations." A filter removes events and a mask removes content from them. Compact applies to the events a filter keeps. With the demo collector's debug lines and one tag field filtered out of the same logs, compact reduced what remained by a further 62%, measured on file size.

Compression on the forwarder link leaves license usage where it was, because Splunk counts each event's text uncompressed. A compact event is counted at its own, shorter length.

What to expect on other logs

The reduction follows how much of each event is repeated text. Across the containers in this test the range was 58% to 69%. On the 14 public LogHub datasets, measured on file size, the range is 4.7% to 58.4%, and 44.7% over all of them weighted by size.

10x compacts the sources routed through it, and every other source reaches Splunk as it does today. Sources with a field profile, such as Windows Security and FortiGate, keep their data models when compacted.

For a figure on a specific deployment, the log10x MCP server pulls a sample from Splunk with read-only credentials, runs the engine on it locally, and returns a cost and savings report per log pattern.

The full app is MIT licensed at github.com/log-10x/splunk-app, and its setup guide covers install, HEC tokens, and forwarder config.

Related: why the template hash is stable, the same problem in Elasticsearch, solved one layer down inside Lucene, and reading ClickHouse logs from the table and the bucket.