liveBook · Manning

Full-text search index

As explained in Cloud Observability in Action

Full-text indexing is the creation of a searchable index over the textual content of documents or log records.

A full-text search index indexes the textual content of documents or log records, allowing searches across the complete text rather than selected fields. In observability, it makes log lines broadly discoverable, provided they contain actionable formatting and context. section 2.3.3

Use full-text indexing with these trade-offs in mind:

  • Searches can find everything in a log line, which is useful when the relevant field or wording is not known in advance. section 2.3.3
  • Indexing all text creates scalability and cost challenges, especially as long-term storage becomes expensive. section 2.3.3
  • Label-based indexing offers a contrasting approach by indexing contextual tags instead of the complete log line. section 2.3.3

Log-search systems

Elasticsearch and OpenSearch use the traditional full-text approach. Grafana Loki instead popularizes label-based indexing, illustrating the choice between unrestricted text search and lower indexing overhead. section 2.3.3

Table 2.1 Overview of the costs of logs (view table figure)

 

Overhead

Considerations

Instrumentation

Small and simple to add a log line

Widely adopted and supported by programming languages

Agent

Some runtime, lots of options, and few standards for formats (syslog, OTLP)

A runtime footprint, ingestion performance, reliability, and security

Destination

Long-term storage can be expensive.

Data temperature (access recency or frequency) can guide retention

Compare instrumentation, agent, and destination overhead when operating indexed logs, including ingestion, reliability, security, and retention considerations. section 2.3.3

How Cloud Observability in Action covers it

How deep it goes
Defines the approach, contrasts it with label indexing, and identifies scalability and cost limits without detailing index internals.
Examples
Uses Elasticsearch and OpenSearch as full-text systems and Grafana Loki as a label-indexed contrast.
What you can do after
Evaluate full-text and label-based indexing choices against search breadth, scalability, storage cost, and retention needs.
How it connects
Connects logs with observability, Elasticsearch, OpenSearch, Grafana Loki, and label-based indexing.

Also explained in

Compare how 3 books explain full-text search index →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Cloud Observability in Action. The section links point to the parts of the book it draws on.