grep -v '^[[:space:]]*$'
fail2ban-regex -d '^\s%Y-%m-%d(?:T| ?)%H:%M:%S(?:.%f)?(?:\s%Z)?' "$logpath" '^\s*[\d+] postgres@\S+ FATAL:\s+(?:password authentication failed|no pg_hba.conf entry) for (?:user|host) "<ADDR>"'