OpenSearch Playground
User-defined

OpenSearch is an open-source, enterprise-grade search and observability suite that brings order to unstructured data at scale.

OpenSearch playground: OpenSearch is an open-source, enterprise-grade search and observability suite that brings order to unstructured data at scale.
Machines & network
1 VM · 4 vCPU · 8GiB RAM
Playground host Internet NAT MASQUERADE local (bridge) 172.16.0.0/24 gw 172.16.0.1/24eth0
VM
vCPU ·
eth0
/
oci://ghcr.io/sagikazarmark/iximiuz-labs/playgrounds/opensearch:live@sha256:0f48b7c1f5e93c2cc7f4c004fd55aa7d6d7c3a796dc99ec37c8ab7ecbbf63f76
About

🔧 System Components

  • opensearch: The core search and analytics engine.
  • opensearch-dashboards: Web-based visualization and exploration interface (similar to Kibana).

🛠️ Tools

  • curl: Primary tool for interacting with OpenSearch REST API.
  • jq: JSON processor for formatting and filtering API responses.

🎯 Getting Started

Authentication

OpenSearch requires authentication for all operations.

The administrator credentials are:

  • 👤 Username: admin
  • 🔒 Password: Iximiuz123!

You can authenticate using:

# Using credentials directly
curl -u admin:Iximiuz123! -k "https://localhost:9200/_cluster/health" | jq

# Using .netrc file (recommended)
curl -n -k "https://localhost:9200/_cluster/health" | jq
Important

OpenSearch uses a self-signed TLS certificate. Use the -k flag with curl to skip certificate verification.

Check Cluster Health

# Check cluster status
curl -nk "https://localhost:9200/_cluster/health" | jq

# Get basic cluster info
curl -nk "https://localhost:9200/" | jq

# List all nodes
curl -nk "https://localhost:9200/_cat/nodes?v"

Working with Indices

# List all indices
curl -nk "https://localhost:9200/_cat/indices?v"

# Get index details
curl -nk "https://localhost:9200/.opendistro_security" | jq

⚙️ Configuration

OpenSearch Configuration

Main configuration file: /etc/opensearch/opensearch.yml

# Edit configuration
sudoedit /etc/opensearch/opensearch.yml

# Restart service after changes
sudo systemctl restart opensearch

OpenSearch Dashboards Configuration

Configuration file: /etc/opensearch-dashboards/opensearch_dashboards.yml

# Edit dashboards configuration
sudoedit /etc/opensearch-dashboards/opensearch_dashboards.yml

# Restart service
sudo systemctl restart opensearch-dashboards

📚 Learn More

Happy learning! 🚀

Every playground includes
Learn more about playgrounds
Start
Settings