You may want to view the fail2ban log file to troubleshoot issues or to see why an IP was banned. The "/var/log/fail2ban.log" file contains all of the logs generated by fail2ban. Use the cat command to view the fail2ban log file: cat /var/log/fail2ban.log.