To parse nginx logs using AWStats – their log formats need to match.

My setup is like this:

  1. nginx log_format (specified in nginx.conf file):
  2. AWStats LogFormat (specified in your domain configuration file):

Hope it helps 🙂