🛡️

Failed Logins

Verified

@elastic/failed-logins

Get failed login attempts grouped by user or IP

Usage

RUN SKILL failed_logins()

With parameters:

RUN SKILL failed_logins WITH index_pattern = 'value', group_by = 'value', limit = 0

Parameters

NameTypeDefaultDescription
index_patternSTRINGSecurity events index pattern
group_bySTRINGGroup by: user, source_ip, or both
limitINTMaximum results

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

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