Raw-text search forces the backend to inspect far more data than an indexed field lookup, so every additional log line increases compute and latency. Once observability data is enriched with workload and region metadata, the search cost rises again unless those attributes are structured as facets.
Why raw-text search scales poorly as observability data grows
Raw-text telemetry search becomes expensive because the system has to inspect content line by line instead of using a narrow index to jump directly to matching records. In a large environment, that means every extra log event increases the amount of text the backend must scan, decompress, compare, and rank, which raises both compute cost and query latency.
The problem gets worse as volume and variety grow together. Once teams add workload names, regions, request IDs, or tenant markers, those values are still just text unless they are modeled as structured fields. The search engine then has to do more work to find them, and broad searches can degrade from a targeted lookup into a full corpus sweep.
Raw-text search also creates a hidden cost trade-off: it is flexible for ad hoc investigation, but that flexibility shifts work from ingestion-time structure to query-time processing. That is usually acceptable for small datasets or occasional forensics, but it becomes expensive when analysts depend on the pattern for routine dashboards, frequent troubleshooting, or repeated hunting across long retention windows.
Why indexing and facets change the cost profile
Structured fields let the backend filter or aggregate by a known attribute instead of reading every token in every line. That is why facets, dimensions, and indexed metadata are so valuable in observability platforms, they convert common dimensions such as service, region, environment, and severity into efficient query paths rather than repeated text matching.
This matters most when the same attributes are queried repeatedly. If an operator constantly asks for “all errors in production from region X” or “all requests for service Y,” the platform should not relearn that pattern from raw text on every search. Indexing turns that repeated intent into a cheaper access path, while raw-text search remains best reserved for exploratory or low-frequency investigations.
There is also a scale effect in retention. A query across one hour of logs may look fine, but the same search over days or weeks of retained telemetry can become much more expensive if the backend must scan unstructured content. As retention grows, structured filtering becomes less of a convenience and more of a cost-control mechanism.
How to decide what should stay raw and what should become structured
The practical question is not whether to eliminate raw-text search, but which fields deserve to be promoted into searchable structure. The strongest candidates are the attributes that are stable, repeatedly queried, and useful for slicing volume, ownership, or blast radius. If a field helps operators narrow results before reading the log body, it is usually a good indexing candidate.
By contrast, free-form message text, stack traces, and unusual diagnostic details often stay better as raw text because they are less predictable and less consistently queried. The expensive mistake is to treat everything the same way: either indexing too little and forcing expensive scans, or indexing everything and paying unnecessary storage and ingestion overhead.
Practitioner Guidance
What to prioritise: Promote high-cardinality but repeatable search dimensions, such as service, region, environment, tenant, and request identifiers, into structured fields first. Those are the attributes that most often justify the cost of indexing because they reduce the number of records the backend must inspect.
What to verify: Check whether your most common searches are filtering on raw message text when they could be using a field. If teams repeatedly search for the same values inside log lines, that is a sign the data model is doing too much work at query time.
Common mistake: Assuming raw-text search is “free” because it already exists. In practice, the cost shows up later as slower queries, heavier compute, and poorer interactivity exactly when incident response or troubleshooting needs speed.
Practitioner takeaway: The cheapest observability query is the one that can discard most of the corpus before reading it, so design telemetry around the questions operators ask most often, not just the text they happen to search.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org