elasticsearch

Manage Elasticsearch clusters via REST API for index management and health checks.

139|38|Updated Mar 28, 2024
One-click install
npx skills add https://github.com/olasunkanmi-SE/codebuddy --skill elasticsearch-olasunkanmi-se
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elasticsearch
Source: https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/elasticsearch
Command: npx skills add https://github.com/olasunkanmi-SE/codebuddy --skill elasticsearch-olasunkanmi-se

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables programmatic interaction with Elasticsearch clusters via the REST API, simplifying index management and data search.

Core Features & Use Cases

  • Health checks, index listing, index creation/deletion, and search across clusters.
  • Simple integration with a base URL and API-key authentication for secure access.
  • Use cases include development, staging, and production environments, cloud-hosted ES services, and automated maintenance tasks.

Quick Start

Use es-cli to perform basic index management and search tasks against your cluster.

Frequently Asked Questions about elasticsearch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Elasticsearch indices via API?

Elasticsearch index management via API involves using curl-based REST requests to list, create, or delete indices. You can programmatically interact with your cluster to maintain index structures across development, staging, and production environments.

Can I check Elasticsearch cluster health using curl?

Yes, you can check Elasticsearch cluster health using curl-based REST API requests. By configuring your base URL, the skill performs health checks to monitor cluster status and ensure your search infrastructure operates correctly.

Does this Elasticsearch skill support API key authentication?

Yes, this Elasticsearch skill supports optional API-key authentication defined in its frontmatter. You can securely access cloud-hosted ES services or self-managed clusters by providing the API key alongside your configurable ES_URL.

What is the best way to search an Elasticsearch cluster programmatically?

The best way to search an Elasticsearch cluster programmatically is through simple REST API integration. Using curl-based requests and a configurable ES_URL, you can execute search queries against your indices for automated maintenance or data retrieval.

Can I use this approach for automated maintenance on cloud-hosted ES services?

Yes, you can use this REST API approach for automated maintenance on cloud-hosted ES services. It applies to development, staging, and production environments, handling index management and search tasks through simple curl-based requests.

Do I need specific dependencies to perform Elasticsearch REST API requests?

No specific dependencies are required to perform Elasticsearch REST API requests. The skill relies on standard curl-based requests and a configurable ES_URL, allowing simple integration without needing additional software components.