🏢

Get Search Analytics

Verified

@elastic/get-search-analytics

Get search analytics for an application

Usage

RUN SKILL get_search_analytics()

With parameters:

RUN SKILL get_search_analytics WITH app_name = 'value'

Parameters

NameTypeDefaultDescription
app_nameSTRINGApplication name

Returns

DOCUMENT— A single document object

Example

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

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