Awstats not updating windows

Also you’ll need to change the log_format in the nginx config to the following: The log_format above is matching the normal apache logformat, except the very last parameter, which is the request time.The request time itself, is the time it takes nginx to process the request.This tutorial will install AWStats to monitor traffics to Apache web server running on Windows operating system, specifically Windows XP.

awstats not updating windows-7

By default cpanel doesn’t allow custom configuration for awstats, which means you need to log into WHM, go to ‘Statistics Software Configuration’ and enable ‘Awstats include file’.Since we’re running nginx in front of Apache this means, it’s only the time spend in the proxy itself, so all dynamic processing will still be handled by apache. The code below is the hook you need to save to /opt/makeawstats/makeawstats.py: #!/usr/bin/python import sys, os raw Data = sys.stdin.readlines() hookdata = eval(raw Data[0].replace(':null', ': None')) data = hookdata['data'] username = data['user'] if not exists('/home/%s/tmp/awstats' % username): os.makedirs('/home/%s/tmp/awstats' % username) f = open('/home/%s/tmp/awstats/include' % username, 'w') f.write('Log Format="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %extra1"\n') f.write('Extra Section Name1="Time to serve requests (seconds)"\n') f.write('Extra Section Code Filter1=""\n') f.write('Extra Section First Column Title1="Number of seconds to serve the request"\n') f.write('Extra Section First Column Values1="extra1,(.*)"\n') f.write('Extra Section Stat Types1="H"\n') f.write('Extra Tracked Rows Limit=100000\n') f.close() if exists('/home/%s/tmp/awstats' % username): os.system('chown -R %s:%s /home/%s/tmp/awstats' % (username, username, username)) The code reads stdin, replaces :null with : None.The offline config files are for daily, weekly, monthly, and yearly reporting.The single online config file is for today reporting.

Leave a Reply