AGENT SKILL

elastic

Search and analyze data via Elasticsearch API. Index, search, and manage clusters.

License 许可
MIT
最近更新
2026-04-05
Stars
★ 7
Forks
1

01 前言 Front Matter

name
elastic
metadata
{ "clawdbot": { "emoji": "?", "requires": { "env": [ "ELASTICSEARCH_URL", "ELASTICSEARCH_API_KEY" ] } } }
description
Search and analyze data via Elasticsearch API. Index, search, and manage clusters.

02 资源文件 1

03 SKILL.md 正文

Elasticsearch

Distributed search and analytics.

Environment

export ELASTICSEARCH_URL="https://elastic.example.com:9200"
export ELASTICSEARCH_API_KEY="xxxxxxxxxx"

Cluster Health

curl "$ELASTICSEARCH_URL/_cluster/health" -H "Authorization: ApiKey $ELASTICSEARCH_API_KEY"

Search

curl -X POST "$ELASTICSEARCH_URL/my-index/_search" \
  -H "Authorization: ApiKey $ELASTICSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": {"match": {"message": "error"}}}'

Index Document

curl -X POST "$ELASTICSEARCH_URL/my-index/_doc" \
  -H "Authorization: ApiKey $ELASTICSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message": "Log entry", "timestamp": "2024-01-30T10:00:00Z"}'

Links

04 同仓库更多 Skills