Amazon OpenSearch Service
Cloud service · AWS · Updated

Amazon OpenSearch Service

In short

Amazon OpenSearch Service is a scalable and fully managed search and analytics service powered by the open source Elasticsearch and OpenSearch engines, designed for real-time application monitoring, log analytics, and search functionality.

Cloud Services Hub →

12 key features of Amazon OpenSearch Service

Amazon OpenSearch Service offers powerful, scalable, and easy-to-manage search and analytics capabilities with real-time application monitoring and log analytics features.

01
Managed Service

Amazon OpenSearch Service is a fully managed service that makes it easy for you to deploy, secure, and run OpenSearch cost effectively at scale. It takes care of the heavy lifting of managing your clusters.

02
Easy to Scale

OpenSearch Serverless automatically scales capacity to match demand without downtime.

03
Secure

Supports role-based access control (RBAC) for fine-grained permissions and index-level encryption for tenant data isolation.

04
Highly Available

Designed for high availability, Amazon OpenSearch Service automatically replaces failed nodes in your cluster, reducing the impact on your applications and minimizing downtime.

05
Monitoring and Logging

Integrated with Amazon CloudWatch and AWS CloudTrail, providing deep insights into queries and metrics for your OpenSearch clusters, and logging for audit, compliance, and operational history.

06
Compatible with OpenSearch and Elasticsearch

Supports both OpenSearch and legacy Elasticsearch APIs, giving users flexibility in their choice of search and analytics engines without having to manage the underlying infrastructure.

07
Machine Learning Features

Includes built-in machine learning tools to help enhance search and analytics capabilities, such as anomaly detection and adaptive relevance for more accurate and personalized search results.

08
Data Durability

Utilizes automated snapshots for data backups, ensuring your data is durable and can be recovered in the case of a failure.

09
Rich Set of Plugins

Offers a wide range of plugins for different use cases, including security, alerting, monitoring, and more, allowing for a customized search and analytics solution.

10
Global Reach

Available in multiple AWS regions around the world, making it easy to deploy applications close to your users for reduced latency and improved performance.

11
Vector Database

Stores and searches billion-scale vectors with a variety of algorithms and engines.

12
SQL Support

Supports SQL for integration with business intelligence applications.

Where Amazon OpenSearch Service is used

Amazon OpenSearch Service is utilized for real-time application monitoring, log and event analysis, website search enhancements, and data visualization tasks across diverse industries.

  1. 01
    Real-Time Analytics

    Amazon OpenSearch Service enables businesses to perform real-time analysis of their data, such as website clickstreams, financial transactions, and social media signals. Companies can use this to monitor performance metrics, detect anomalies, and make data-driven decisions instantaneously.

  2. 02
    Log Analytics

    It's common to use Amazon OpenSearch Service for centralizing and analyzing logs from various sources like web servers, applications, and IoT devices. This allows IT and DevOps teams to monitor system health, troubleshoot issues quickly, and understand operational trends over time.

  3. 03
    Search-Enabled Applications

    Developers can leverage Amazon OpenSearch Service to add rich search features to their applications, websites, and services. This includes full-text search with relevance ranking, faceted search for filtering results, and auto-completion features to enhance user experiences.

  4. 04
    Security Information and Event Management (SIEM)

    Organizations use Amazon OpenSearch Service as part of their SIEM solution to aggregate and analyze security event data in real time. This assists in threat detection, compliance monitoring, and maintaining secure operations across their digital environments.

  5. 05
    Machine Learning for Predictive Analytics

    With built-in machine learning capabilities, Amazon OpenSearch Service can be used for predictive analytics, helping businesses forecast trends, understand customer behavior, and make proactive decisions based on predictive models generated from their data sets.

How Amazon OpenSearch Service is priced

Amazon OpenSearch Service pricing is based on the compute instance, storage used, data transfer, and optional features such as UltraWarm and Cold Storage.

On-Demand Instances

Charges are based on the type and number of OpenSearch instances (nodes) used, the hours those instances are running, and the region in which the instances are located.There is no long-term commitment required.

Reserved Instances

Offers a discount on the hourly charge for an instance, in exchange for a commitment to use a specific instance type in a single region for a one or three year term.

Amazon OpenSearch Storage

Charged based on the amount of data you store in your OpenSearch domains. Pricing varies by storage type (e.g., SSD vs. HDD) and region.

Data Transfer

Standard AWS data transfer charges apply to data transferred into and out of Amazon OpenSearch Service. Data transfer between nodes within the same domain is not charged.

Snapshot Storage

Automated cluster snapshot storage is free, and snapshots are retained for 14 days. Manual snapshots are stored in Amazon S3 and incur standard Amazon S3 usage charges.

Database Savings Plans

Offers savings for both Managed Clusters and Serverless in exchange for a usage commitment measured in dollars per hour over a one-year term.

Serverless NextGen Collections

Compute for indexing and search is charged in OCU-hours at the collection-group level with per-second granularity, and hot storage is charged separately in gigabyte-months. There is no minimum OCU requirement; indexing and search OCUs scale to zero after 10 minutes of inactivity.

Serverless Classic Collections

Indexing and search compute is billed in OCU-hours with per-second granularity, and managed storage is billed in gigabyte-months. The first collection has a minimum of 2 OCUs with redundancy, or 1 OCU for dev-test without redundant standby nodes; minimum capacity varies with data size and collection type.

OpenSearch Ingestion

Compute used to ingest, transform, and route data in ingestion pipelines is charged in OCU-hours with per-minute granularity. Pipeline minimum and maximum OCUs can be configured, and paused pipelines consume no OCUs.

Vector Index GPU-Acceleration

Accelerated vector indexing is charged for consumed Vector Acceleration OCU time, billed hourly with per-second granularity. Managed auto-scaling and warm pooling do not add billed time.

Vector Auto-Optimize Jobs

Charged at a fixed rate per job for hyperparameter optimization that evaluates index configurations and produces optimization recommendations.

S3 Vectors

Vector uploads are charged by logical gigabytes uploaded, and storage is based on the logical size of vector data, metadata, and keys. Queries incur both a per-API charge and a data-processing charge based on index vector count and average vector size, including keys and filterable metadata.

Automatic Semantic Enrichment

Semantic encoding generation during ingestion is charged in OCU-hours with per-minute granularity. No Semantic Search OCUs are charged when unused, and there are no additional Semantic Search OCU charges for searches or storage.

Direct Query

Compute used to query connected data sources or maintain indexes is charged in OCU-hours with per-minute granularity. No OCUs are consumed when no queries or indexing jobs are active.

Extended Support

Engine versions in Extended Support incur a surcharge in addition to standard instance costs. Depending on the version and support period, this is a flat fee per Normalized Instance Hour or, for an additional extension beyond the originally published support end date, an amount equal to the instance cost; storage costs are unaffected by that extension surcharge.

OpenSearch AI Token Usage

Generative AI models run by OpenSearch on your behalf incur separate input-token and output-token charges. Rates match Amazon Bedrock on-demand pricing for the same model in the same Region or Geo, with no OpenSearch markup.

Services Amazon OpenSearch Service works with

Amazon S3Amazon S3

Amazon OpenSearch Service can index data stored in Amazon S3 buckets and be used to store logs and backups of your OpenSearch Service data.

AWS LambdaAWS Lambda

AWS Lambda can be used to preprocess data before ingesting it into Amazon OpenSearch Service, and can also trigger actions based on OpenSearch data.

Amazon Kinesis Data StreamsAmazon Kinesis Data Streams

Amazon Kinesis Data Streams can be integrated with OpenSearch Service to capture, process, and analyze real-time streaming data.

Amazon Data FirehoseAmazon Data Firehose

Amazon Data Firehose can be used to load streaming data directly into Amazon OpenSearch Service for near real-time analytics.

AWS CloudTrailAWS CloudTrail

AWS CloudTrail logs can be indexed in Amazon OpenSearch Service for monitoring API activity and detecting unusual behavior.

Amazon AthenaAmazon Athena

Athena's OpenSearch connector lets you query indexes in an OpenSearch Service domain using SQL and join the results with data from other Athena data sources.

Amazon Bedrock

OpenSearch Service supports Amazon Bedrock embedding and generative models through machine-learning connectors. Amazon Bedrock Knowledge Bases can also use OpenSearch Service vector indexes to store embeddings and retrieve relevant content for retrieval-augmented generation.

Amazon CognitoAmazon Cognito

OpenSearch Service integrates with Cognito user pools and identity pools to authenticate users of OpenSearch Dashboards. This lets you provide a managed sign-in experience instead of distributing IAM credentials to dashboard users.

Amazon DevOps GuruAmazon DevOps Guru

DevOps Guru analyzes operational metrics from OpenSearch Service domains to identify anomalous behavior. Its insights can help investigate problems such as unusual resource utilization or deteriorating cluster performance.

What is Amazon OpenSearch Service

3 min read

Amazon OpenSearch Service, formerly known as Amazon Elasticsearch Service, is a fully managed service that makes it easy for developers to deploy, secure, operate, and scale OpenSearch, an open-source, distributed search and analytics suite. 

This service offers a seamless way to perform interactive log analytics, real-time application monitoring, website search, and more, on massive volumes of data with high velocity and variety, typically referred to as "big data". 

Automatic Semantic Enrichment uses CPU, GPU, and memory resources to generate semantic encodings for specified data fields during ingestion, automatically scaling Semantic Search OCUs without preconfigured minimum or maximum values.

Direct Query lets you analyze log data stored in Amazon S3, Amazon CloudWatch Logs, and Amazon Security Lake.

The roots of Amazon OpenSearch Service trace back to Elasticsearch, but following the licensing changes in Elasticsearch 7.11, Amazon Web Services opted to fork the project, leading to the birth of OpenSearch. This move ensured that users could continue leveraging the robust capabilities of the platform under an open-source license, providing a pathway for both existing Elasticsearch users and new adopters to benefit from the innovations and improvements in search and analytics without licensing restrictions.

Legacy Elasticsearch OSS support extends only through version 7.10; when creating a domain, you can choose between OpenSearch and supported legacy Elasticsearch engines.

OpenSearch Service simplifies the complex tasks of managing search engine operations. It automates tedious tasks such as hardware provisioning, setup, software patching, failure recovery, backups, and monitoring. This allows developers and businesses to focus on creating innovative applications and derive meaningful insights from their data, without worrying about the underlying infrastructure. 

Managed clusters can use Multi-AZ with Standby, a deployment option that maintains availability and consistent performance during infrastructure failures, including a single Availability Zone failure.

Amazon OpenSearch Service offers a variety of features that cater to diverse needs. It supports OpenSearch Dashboards, which is a suite of visualization tools to monitor, analyze, and explore data stored in your OpenSearch domains visually. This is particularly useful for businesses that need to analyze large datasets to make informed decisions quickly. 

OpenSearch Dashboards supports Amazon Cognito, HTTP basic, or SAML authentication.

Moreover, the service provides a robust security offering. Users can control access to their OpenSearch domains using AWS Identity and Access Management (IAM) for fine-grained access control. Additionally, it supports data encryption both in transit and at rest, ensuring that sensitive information is protected from unauthorized access. 

Security controls can be applied at index, document, and field level.

Another critical aspect of Amazon OpenSearch Service is its scalability. Users can scale their OpenSearch clusters up or down, based on their requirements, without incurring downtime. This feature is crucial for handling variable workloads, helping businesses maintain optimal performance while managing costs effectively. 

When GPU acceleration is enabled and indexing throughput exceeds a configurable threshold, vector indexing tasks are offloaded to Vector Acceleration OCUs.

Vector Auto-Optimize jobs sample vectors from your dataset and run parallel experiments to build and evaluate indexes across different configurations.

Amazon S3 Vectors provides elastic, durable vector storage for RAG and other semantic search workloads.

Supported scale reaches up to 1002 data nodes and 25 PB of attached storage.

Amazon OpenSearch Serverless offers NextGen and Classic collections. Classic also offers a dev-test deployment without redundant standby nodes.

Furthermore, Amazon OpenSearch Service is deeply integrated with the AWS ecosystem, offering out-of-the-box integrations with a wide range of AWS services such as Amazon Kinesis, AWS Lambda, and Amazon CloudWatch. This facilitates efficient data ingestion, processing, and analytics workflows, empowering users to build comprehensive, real-time analytics solutions on AWS. Overall, Amazon OpenSearch Service stands as a powerful, scalable, and fully managed service that offers a

Concepts related to Amazon OpenSearch Service

Amazon OpenSearch Service exam questions

Real practice exam questions on Amazon OpenSearch Service, with the correct answer and its explanation. Answer them with every option in the exam simulator.

AIB-C01

A market research company uses a generative AI assistant to answer analysts' questions from industry reports. Amazon OpenSearch Service retrieves 30 candidate passages, but the application sends only the five highest-ranked passages to the foundation model to control cost and input size. Reviewers find that passages directly answering the questions are usually among the 30 candidates, but broad discussions of the same industry often occupy the first five positions. The company must retain the five-passage limit. Which change would BEST improve the assistant's answers?

Show answerCORRECT ANSWER

Rerank the retrieved candidates for relevance to the analyst's specific question, then supply the five best-ranked passages to the foundation model.

Reranking adds a relevance-assessment step before selecting the grounding evidence. It can promote directly useful passages over broadly related material, improving retrieval-augmented generation while preserving the five-passage limit.

MLA-C02

A company stores 3 million support-ticket documents in an Amazon OpenSearch Service index. An ML engineer must extract every document with training_approved set to true and write its ticket_text and category fields as JSON Lines files to Amazon S3. Approximately 600,000 documents qualify. The index will not change during extraction, and its max_result_window setting is 10,000.

The engineer must retrieve all qualifying documents without changing index settings or restoring data to another domain. Which solution meets these requirements?

Show answerCORRECT ANSWER

Run a filtered search with a scroll context, a batch size of 1,000, and _source filtering for ticket_text and category. Continue requesting batches with the latest returned scroll ID until no hits remain, write each hit's selected source fields to S3 as JSON Lines, and clear the scroll context.

A scroll context supports retrieving large result sets in batches without using deep from/size pagination. The filter selects approved documents, and _source filtering retrieves the required fields. Processing batches until no hits remain retrieves all qualifying documents; clearing the context releases its resources.

SAP-C03

A SaaS company operates a retrieval-augmented generation (RAG) assistant for 5,000 tenants. A shared Amazon OpenSearch Service index stores document chunks, embeddings, and a tenant_id keyword field. The vector field uses a Lucene HNSW index. The application derives the tenant ID from the authenticated user's identity.

Currently, the application retrieves the 100 nearest vectors across the index and then removes chunks belonging to other tenants. Small tenants frequently receive no context even when they have many relevant chunks. Some large tenants have millions of chunks.

The company requires tenant restrictions to be enforced within OpenSearch before candidate passages are returned to the application. Retrieval should return up to 20 tenant-authorized nearest neighbors when enough matching documents exist, without retrieving thousands of cross-tenant candidates or exhaustively scoring every document belonging to a tenant.

Which solution best meets these requirements?

Show answerCORRECT ANSWER

Place a term filter for the authenticated tenant_id inside the k-NN query's filter parameter, and request 20 neighbors. Use Lucene's efficient k-NN filtering to incorporate the restriction into vector retrieval.

Lucene supports efficient filtering within an OpenSearch k-NN query. Supplying the tenant restriction inside the k-NN filter allows neighbor selection to account for eligibility instead of discarding other tenants' results after global candidate selection. This addresses underfilled results while avoiding application-side oversampling and an exhaustive script-based similarity calculation over every tenant document. OpenSearch may choose its internal search strategy based on filter selectivity.

Practice Amazon OpenSearch Service in a full exam

Questions on Amazon OpenSearch Service in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon OpenSearch Service in lessons

16 short lessons on Amazon OpenSearch Service in 10 certification courses.

and 10 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.