@elastic/get-recent-errors
Get recent error logs with details
RUN SKILL get_recent_errors()With parameters:
RUN SKILL get_recent_errors WITH index_pattern = 'value', limit = 0, service = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| index_pattern | STRING | — | Index pattern to search |
| limit | INT | — | Maximum number of errors to return |
| service | STRING | — | Filter by service name (optional) |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL get_recent_errors()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}