Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jawwadfirdousiv0.1.1MITIn 1 marketplace
Searches Elasticsearch application logs by trace ID, level or time range to trace a request or debug errors. Needs Elasticsearch credentials and at least one configured environment, set up with its envs.py script.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
log-analysis, logs, trace-id, debugging, curl, observability, query, analysis
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Query and analyze application logs in Elasticsearch with focused curl queries.
_searchtrace.id, log level, time range, and field values_source and filter_path_count, _mapping, _stats, and _cat/indicescurl, python3 (stdlib only)ES_USERNAME / ES_PASSWORD, orenvironments.json (set via scripts/envs.py)environments.json (see Setup)The skill stores per-environment settings (URL, index pattern, optional credentials)
in skills/elastic-search-logs/environments.json and manages them via the
scripts/envs.py CLI. At least one environment must be configured.
# From skills/elastic-search-logs/
python3 scripts/envs.py add dev --url https://es-dev.example.com:9243
python3 scripts/envs.py add rc --url https://es-rc.example.com:9243
python3 scripts/envs.py add prod --url https://es-prod.example.com:9243 \
--description "Production cluster"
# Update later
python3 scripts/envs.py update dev --url https://es-dev-new.example.com:9243
# Remove (blocked on the last env)
python3 scripts/envs.py remove rc
# Inspect
python3 scripts/envs.py list
python3 scripts/envs.py get dev
Credentials can stay in your shell:
export ES_USERNAME="your-username"
export ES_[REDACTED:Password]
Or be stored per-env (when dev/rc/prod use different creds):
python3 scripts/envs.py update prod --username myuser --password 'sekret'
environments.json is gitignored and chmod 600 is applied automatically.
See environments.example.json for a starting point.
When invoking through an agent, ask which environment to query if the user didn't specify one and multiple envs exist. The agent loads the chosen env before each query with:
eval "$(python3 scripts/envs.py get dev --format export)" \
&& curl -X POST "$ES_BASE_URL/$ES_INDEX_PATTERN/_search" \
-u "$ES_USERNAME:$ES_PASSWORD" \
-H "Content-Type: application/json" \
-d '{ "query": { "match_all": {} }, "size": 5 }'
Example prompts:
Use elasticsearch skill to find all ERROR logs in dev in the last 1 hour for service payments.
Use elasticsearch skill in prod to trace request flow for trace.id YOUR_TRACE_ID and show only timestamp, message, and status code.
Add a new staging env to elasticsearch skill with URL https://es-staging.example.com:9243.
Basic search:
curl -X POST "$ES_BASE_URL/$ES_INDEX_PATTERN/_search" \
-u "$ES_USERNAME:$ES_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"query": { "match_all": {} },
"size": 10,
"sort": [{ "@timestamp": "desc" }]
}'
Search by trace ID with selected fields:
curl -X POST "$ES_BASE_URL/$ES_INDEX_PATTERN/_search?filter_path=hits.hits._source" \
-u "$ES_USERNAME:$ES_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"query": { "term": { "trace.id": "YOUR_TRACE_ID" } },
"_source": [
"@timestamp",
"message",
"appPayload.res.statusCode"
],
"size": 100,
"sort": [{ "@timestamp": "desc" }]
}'
Count matches:
curl -X POST "$ES_BASE_URL/$ES_INDEX_PATTERN/_count" \
-u "$ES_USERNAME:$ES_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"query": { "term": { "trace.id": "YOUR_TRACE_ID" } }
}'
View mappings:
curl -X GET "$ES_BASE_URL/$ES_INDEX_PATTERN/_mapping" \
-u "$ES_USERNAME:$ES_PASSWORD"
skills/elastic-search-logs/SKILL.md contains the full query cookbook, field-path reference, and troubleshooting checklist.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (jawwadfirdousi/agent-skills) — no native marketplace selected
npx claudepluginhub p/jawwadfirdousi-elastic-search-logs-elastic-search-logsPlugins from other owners that cover similar ground