

'"$http_user_agent" "$http_x_forwarded_for"' '$status $body_bytes_sent "$http_referer" ' Open up /etc/nginx/nf and add these lines: log_format main '$remote_addr - $remote_user "$request" '

If you don’t customize your Nginx log format then you can skip this section, but make a note of where Nginx is putting your logs, you’ll need that in the next step. To get AWStats working the next step is to create our config files and build the stats, but first I like to overcomplicate things with a custom log format for Nginx. You can double-check that the database files exist by looking in the directory /usr/share/GeoIP/ and verifying that there’s a file named GeoIP.dat. That should take care of the GeoIP stuff.
AWSTATS IO INSTALL
Once cpan is set up, install GeoIP: install Geo::IP If you’ve already got cpan set up, you can skip to the next step: make install If this is your first time in cpan you’ll need to run two commands to get everything set up. Next you need to fire up the cpan shell: cpan Here’s what worked for me.įirst we need build-essential and libgeoip: sudo apt install libgeoip-dev build-essential Because I like to have some geodata in my stats, I also installed the tools necessary to use the AWStats geoip plugin. This will install the various tools and scripts AWStats needs. The first step is to install the AWStats package from the Ubuntu repositories: sudo apt install awstats Here’s how I’ve managed to get AWStats installed and running on Ubuntu 18.04, Ubuntu 20.04, Debian 10, and Debian 11. AWStats just analyzes your visitors’ footprints.
AWSTATS IO CODE
There’s no spying, no third-party code bloat. It parses your server log files and tells you who came by and what they did. If you’d like some basic data about your site’s visitors, but don’t want to let spyware vendors track them around the web, AWStats makes a good solution. I’ve updated the guide so that the commands work on both Debian 11 and Ubuntu 20.04.
AWSTATS IO PDF

Days of week and rush hours (pages, hits, KB for each hour and day of week),.Authenticated users, and last authenticated visits,.Number of visits, and number of unique visitors,.
AWSTATS IO FULL
AWStats is a free, powerful and feature full server logfile analyzer that shows you all your Web/Mail/FTP statistics including visits, unique visitors, pages, hits, rush hours, operating system, browsers, search engines, keywords, robots visits, broken links and more.Ī full log analysis enables AWStats to show you the following information:
