🛡️

Get Security Alerts

Verified

@elastic/get-security-alerts

Get recent security alerts and detections

Usage

RUN SKILL get_security_alerts()

With parameters:

RUN SKILL get_security_alerts WITH severity = 'value', limit = 0, index_pattern = 'value'

Parameters

NameTypeDefaultDescription
severitySTRINGFilter by severity: critical, high, medium, low
limitINTMaximum alerts to return
index_patternSTRINGSecurity events index pattern

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

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