Nginx logging the full ip address

I’m trying to implement fail2ban to bitwarden which has been successful however for the IP banning process it’s not working as it should. Nginx /bwdata/logs/nginx/access.log only shows - x.x.x.1 and not the full address. Is there any sort of config to go around this and ban the actual IP address.