Overview
OpenSearch is an open-source distributed search and analytics suite that includes a search engine, NoSQL document database, and visualization interface. Originally forked from Elasticsearch and Kibana in 2021, OpenSearch provides full-text search based on Apache Lucene with a RESTful API and JSON document support.Why Choose Aiven for OpenSearch
Unified Search & Analytics
Full-text search, log analysis, and real-time analytics in one platform
OpenSearch Dashboards
Built-in visualization and exploration interface included with every service
Rich Plugin Ecosystem
Includes SQL support, anomaly detection, alerting, and security plugins
Schemaless Storage
Index various data structures without predefined schemas
Key Features
Full-Text Search
Full-Text Search
Powerful search capabilities powered by Apache Lucene:
- Relevance scoring and ranking
- Fuzzy matching and autocomplete
- Multi-field and compound queries
- Highlighting and snippets
- Custom analyzers and tokenizers
OpenSearch Dashboards
OpenSearch Dashboards
Comprehensive visualization and exploration:
- Interactive dashboard builder
- Time-series visualizations
- Geo maps and spatial data
- Custom visualizations
- Saved searches and filters
- Alerting and notifications
Log Aggregation and Analysis
Log Aggregation and Analysis
Purpose-built for log management:
- Ingest logs from multiple sources
- Real-time log parsing and enrichment
- Time-based index management
- Log retention policies
- Integration with Aiven services for log collection
Anomaly Detection
Anomaly Detection
ML-powered anomaly detection:
- Automatic pattern recognition
- Real-time anomaly alerts
- Historical anomaly analysis
- Customizable detectors
Alerting
Alerting
Proactive monitoring and notifications:
- Custom alert conditions
- Multiple notification channels
- Alert history and audit trail
- Scheduled and real-time alerts
Getting Started
1
Create OpenSearch Service
Deploy an OpenSearch service with Dashboards included:OpenSearch Dashboards is automatically included with every service.
2
Access OpenSearch Dashboards
Get the Dashboards URL and credentials from the service overview:Login with the
avnadmin user and password from the service credentials.3
Create Your First Index
Indexes are like tables in a relational database:
4
Index Documents
Add documents to your index:
Connection Examples
- cURL
- Python
- Node.js
- Java
Advanced Features
Index Management
Index Lifecycle Management
Index Lifecycle Management
Automate index rollover and deletion:
Index Templates
Index Templates
Define settings for new indices:
Reindexing
Reindexing
Copy or transform data between indices:
Search Features
Complex Queries
Complex Queries
Aggregations
Aggregations
SQL Support
SQL Support
Query using SQL syntax:
Performance Optimization
Bulk Operations
Bulk Operations
Use bulk API for indexing multiple documents:
Search Optimization
Search Optimization
- Use filters instead of queries when possible (cached)
- Limit result size with
sizeandfrom - Use
_sourcefiltering to reduce response size - Implement pagination with
search_after - Use
track_total_hits: falsefor large datasets
Use Cases
- Log Management
- Application Search
- Security Analytics
- Metrics and Monitoring
Centralized logging and analysis:
- Collect logs from multiple services
- Real-time log search and filtering
- Create alerts for error patterns
- Visualize log trends in dashboards
Monitoring and Maintenance
Cluster Health
Key Metrics
Cluster Health
- Green: All shards allocated
- Yellow: Replicas not allocated
- Red: Primary shards not allocated
Performance
- Query latency
- Indexing rate
- Search rate
- Cache hit ratio
Resources
- CPU usage
- Memory (heap/non-heap)
- Disk space
- JVM garbage collection
Indices
- Number of documents
- Index size
- Shard distribution
- Unassigned shards
Security
Authentication
Authentication
- Built-in user management
- SAML authentication support
- API key authentication
- Certificate-based authentication
Access Control
Access Control
Role-based access control (RBAC):
Network Security
Network Security
- VPC peering for private connectivity
- IP allowlisting
- TLS encryption (required)
- AWS PrivateLink support
Related Services
Apache Kafka
Stream logs from Kafka to OpenSearch
Grafana
Visualize OpenSearch data in Grafana
Apache Flink
Process streams and sink to OpenSearch
PostgreSQL
Full-text search on PostgreSQL data
Resources
Trademark Notice: OpenSearch and OpenSearch Dashboards are open-source projects forked from formerly open-source Elasticsearch and Kibana projects.