Benchmark LogsDB Full-Text Search Performance

Measure LogsDB full-text search speed and efficiency with real-world benchmarks. Analyze performance data to make informed indexing decisions.

Selecting Elasticsearch Indexing Strategies: LogsDB vs. Standard Index

Selecting the correct Elasticsearch indexing strategy balances speed, storage, and stability. This guide compares LogsDB and Standard Indexes using Elastic Rally benchmarks. It also examines how ES|QL full-text search enhances LogsDB for log analytics.

In the Rally full-text search test, Logs DB reached a mean throughput of 14.12 ops/s against 13.96 ops/s for the standard index.

To create a custom AI agent, see this guide:

LogsDB vs. Standard Index: Performance Comparison

Elasticsearch provides two indexing methods.

This article tests both options under real-world conditions. It evaluates their suitability for log-heavy applications.

Testing Methodology: Benchmark Approach

We benchmarked both indexing strategies using Elastic Rally and realistic log datasets. We measured the following key performance metrics:

Full-Text Query Used for Testing

We ran a MATCH query to test Elasticsearch full-text search. The test query was:

```json

{

"query": {

"bool": {

"must": [

{

"match": {

"message": "Database connection failed"

}

}

]

"should": [

{

"match": {

"details": "359+characters.",

},

},

]

}

}

}

```

Test Parameters (Rally Config):

LogsDB benchmark results: LogsDB index versus standard index

| Metric | Logs DB index | Standard index | Result |

|-------------------|----------------|------------------|------------|

| Min Throughput | 11.88 ops/s | 10.55 ops/s | Logs DB |

| Mean Throughput | 14.12 ops/s | 13.96 ops/s | Logs DB |

| Max Throughput | 15.01 ops/s | 14.86 ops/s | Logs DB |

Logs DB sustains higher throughput in full-text search tests. Select Logs DB for log-based search workloads.

ES|QL Optimizes Logs DB Full-Text Search

Logs DB stores, retrieves, and analyzes logs. Search performance is critical. ES|QL (Elasticsearch Query Language) optimizes and accelerates full-text search. This improves performance for log-heavy workloads.

ES|QL enhances Logs DB performance in these ways:

Example Query

```json

GET logs/_search?size=1

{

"query": {

"match": {

"message": "error"

}

},

"sort": [

{ "timestamp": "desc" }

]

}

```

Example query

```json

GET logs/_search?size=1

{

"query": {

"query_string": {

"query": "message:\"server error\" OR status:500"

}

},

"sort": [

{ "timestamp": "desc" }

]

}

```

Relevance to Logs DB

Application Example

When logs contain location data (e.g., IP addresses mapped to coordinates):

Select an Index

Index selection depends on workload requirements and priorities. Table 1 lists criteria.

Use Logs DB Index if:

Choose the standard index when:

Understanding these differences allows you to align your Elasticsearch configuration with specific use cases and performance requirements.

Key Takeaways

The Logs DB Index offers a high-performance, low-cost solution for log analytics. It integrates with ES|QL to provide advanced search capabilities. While the Standard Index serves as a reliable general-purpose option, it faces performance limits with high-volume logging workloads.

Recommendation: Run custom Elastic Rally tests to validate performance against your specific data patterns.

Related reading: Benchmarking Elastic Cloud on AWS, GCP and Azure and what Elastic Observability covers.

Note: These benchmarks use Elastic Rally. Actual results vary based on workload and cluster configuration. Implement enterprise-scale search capabilities by contacting our team.

Contact Us

LogsDB questions

What is LogsDB in Elasticsearch?
LogsDB is an Elasticsearch index mode optimized for log data. The article says it provides efficient storage and stable performance, and it stores, retrieves and analyzes logs. The Standard Index is the general-purpose option that supports diverse workloads. ES|QL functions such as MATCH and QSTR speed up full-text search on LogsDB.
Is LogsDB faster than a standard index for full-text search?
In the article's Elastic Rally test, LogsDB sustained higher throughput on a full-text MATCH query: 11.88 vs 10.55 ops/s at minimum, 14.12 vs 13.96 at mean and 15.01 vs 14.86 at maximum. Results vary with workload and cluster configuration, so run custom Rally tests on your own data.
When should you use a LogsDB index?
Use LogsDB when reducing infrastructure cost is a primary goal and logging is the main application use case. Choose the standard index when fast indexing is the primary goal, when you need to process data types other than logs, or when latency spikes are acceptable because of possible performance variability.
How do you benchmark Elasticsearch indexing and search?
The article uses Elastic Rally with realistic log datasets and a simulated log workload in a Kubernetes environment. It measures indexing performance, meaning the time to add new data, and query speed, meaning the time to return search results. It recommends custom Rally tests against your own data patterns.
What does ES|QL add to LogsDB search?
ES|QL, the Elasticsearch Query Language, optimizes and accelerates full-text search on LogsDB. Its MATCH function runs fast Lucene-style full-text search, and its QSTR function filters data using Lucene query syntax. The article says this improves performance for log-heavy workloads, where search performance is critical.