Command to check fail2ban's log is sudo tail -f /var/log/fail2ban.log
Home » Workshop » Reference Section » Grimoires » IT » Platforms » Linux » Packages » fail2ban » How to check Fail2ban log
Related Articles
View last 200 lines of all access logs on apache serverPosted inIT Grimoire
find [path/to/access/logs/folder] -name "*_access_log" -exec sh -c 'tail -200 "$1" | grep -v "HetrixTools\|ok\.txt\|canary" | sed "s/$/ [$(basename "$1" _access_log)]/"'…
Detect SYN flood slowing down server with netstatIf the web server is slow, detect a SYN flood by netstat -ant | grep :443 | grep SYN_RECV to…
Linux PHP tuning utilities & commandsPosted inIT Grimoire
1. See memory consumed by php-fpm8.2 (change this to match different PHP version if necessary) ps --no-headers -o "rss,cmd" -C…
Quickly check status/error code of all hosted domainsTo quickly check to http return code for a bunch of your hosted domains, enter this in bash: [code]for host…
Add sar logging for CPU, RAM, and disk I/OPosted inIT Grimoire
Add or change /etc/cron.d/sysstat to this. This creates a cron jobe to write file /tmp/outage_resource_log.txt that keeps minute-by-minute stats, sometimes…
Post navigation
Linux PHP tuning utilities & commands