📊

Get Slow Transactions

Verified

@elastic/get-slow-transactions

Find the slowest transactions for a service or across all services

Usage

RUN SKILL get_slow_transactions()

With parameters:

RUN SKILL get_slow_transactions WITH service = 'value'

Parameters

NameTypeDefaultDescription
serviceSTRINGService name (optional)

Returns

ARRAY— An array of matching documents

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL get_slow_transactions()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}