🛡️

Search Security Events

Verified

@elastic/search-security-events

Search security events with full-text query

Usage

RUN SKILL search_security_events()

With parameters:

RUN SKILL search_security_events WITH query = 'value'

Parameters

NameTypeDefaultDescription
querySTRINGSearch query

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 search_security_events()"}'

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