awstats

https://blog.e2info.co.jp/2018/09/30/awstats_yum/ 2018

  -LogFile=x     to change log to analyze whatever is 'LogFile' in config file

なので以下のように書ける

/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=www.example.com -update \
 -LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/httpd/www*example-access_log |"

awstats nginx

tools/nginxディレクトリにnginxの設定例とphpからperl動作させるcgi付属。

http://lol.pman.biz/archives/997

X-Forwarded-For host_proxy

From AWStats 6.9, AWstats LogFormat supports a new field called %host_proxy
that can be used for the Apache %{X-Forwarded-For}i field, but you cannot use
both %host_proxy and %host in the same LogFormat directive.

https://sourceforge.net/p/awstats/discussion/43428/thread/0d62e3ef/

http://www.awstats.org/docs/awstats_changelog.txt

LogFormat = "%host_proxy %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"

http://www.internetofficer.com/forum/awstats-apache-installation-and-configuration/problem-with-x-forwarded-fori-log-analyze