Skip to content

Elasticsearch

CategoryDatabases
CLIcurl + es-cli wrapper
AuthAPI key
ConfigES_URL (optional)

Uses curl and a bundled es-cli wrapper to give CodeBuddy access to Elasticsearch clusters. The agent can search indices, manage mappings, check cluster health, and run aggregations.

Elasticsearch access via HTTP. Set the cluster URL:

Terminal window
export ES_URL="http://localhost:9200"

For secured clusters, configure authentication as needed per your Elasticsearch setup (API key, basic auth, etc.).

The skill includes a bundled install.sh for setting up the CLI wrapper.

Verify connectivity:

Terminal window
curl -s "$ES_URL/_cluster/health" | python3 -m json.tool
  • Search — full-text queries, bool queries, aggregations
  • Indices — create, delete, list, stats, mappings
  • Cluster — health, node stats, shard allocation
  • Documents — index, get, update, delete, bulk
  • Aliases — create, list, swap
  • “Check the cluster health status”
  • “Search the logs-* index for errors in the last hour”
  • “Show the mapping for the products index”
  • “Run an aggregation to count events by status code”