get_failed_logins
Retrieve recent failed login attempts with summary statistics for login triage; reads lastb or falls back to journalctl, defaulting to 20 entries.
Instructions
Returns recent failed login attempts (excluding Boot records) with summary statistics. Read-only: lastb -n N, falling back to journalctl if btmp is not readable. Default 20 entries. Errors are non-fatal. Use for login-attempt triage; get_audit_logs for auditd AVC and syscall events.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_failed_logins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | number of recent entries (default: 20) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| entries | Yes | ||
| summary | Yes |