7 lines
340 B
Bash
Executable File
7 lines
340 B
Bash
Executable File
#!/bin/bash
|
|
# V31 batch generator - Opus WIRE doctrine 13+7 - Skill: auth-log-recent
|
|
# Description: Auth log recent failures
|
|
# Whitelist-safe timeout 8s
|
|
set +e
|
|
timeout 8 bash -c "grep -i 'failed' /var/log/auth.log 2>/dev/null | tail -5 | wc -l || echo 0" 2>&1 || echo "{\"skill\":\"auth-log-recent\",\"error\":\"timeout_or_missing_tool\"}"
|