sudo tail -f /var/log/fail2ban.log

Category: VPS Management

sudo tail -f /var/log/fail2ban.log

Follow fail2ban log live

Streams new log lines as they are written, showing bans, unbans, and jail actions in real time — the way to watch an attack unfold or debug a jail that never triggers. tail -f (follow) keeps the file open; Ctrl-C stops it. The log is also the first place to look when fail2ban silently does nothing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.