AWStats
Generate statistics from web, streaming, ftp or mail server logfiles.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: This entry was written without being able to fetch the official website, so it is compiled from what is known about AWStats. Please refer to the official website for specific versions and details.
Introduction
AWStats (Advanced Web Statistics) is a free, open-source server log analysis tool written in Perl and released under the GPL license. It reads your server's access logs and generates statistical reports with charts and tables. Besides web server logs, it can also analyze logs from streaming, FTP and mail servers.
It analyzes server logs directly, so there is no need to embed third-party tracking scripts in your web pages, and all your statistics stay on your own server.
Key Features
- Traffic statistics: visits, unique visitors, page views, requests (hits) and bandwidth, viewable by month, day, day of the week and hour
- Visitor origin: the country/region and host of visitors; looking up the country/region requires enabling a GeoIP-type plugin; authenticated users can also be tracked
- Client information: browsers, operating systems, and search engine crawlers and robots
- Referrers and searches: referring pages, search engines, and the search keywords and phrases visitors used
- Content analysis: most visited pages, entry and exit pages, file types, and visit duration
- Error statistics: HTTP status codes, such as 404 page not found, and the corresponding broken links
- Plugin extensions: plugins can add features such as geolocation lookup
Target Users and Use Cases
- Webmasters and system administrators who manage their own servers
- Web hosting providers; many hosting control panels have AWStats built in
- Individuals or organizations that value privacy and don't want to use third-party analytics services
- Situations where you need to analyze past traffic from historical logs
Core Strengths
- No JavaScript tracking needed: it analyzes logs directly, so visitors are counted even if they block scripts
- Supports many log formats: including Apache's NCSA combined/common formats, IIS's W3C format, and custom formats
- Cross-platform: runs anywhere Perl is available, including Linux, Unix and Windows
- Low resource usage: logs are processed incrementally and results are stored in intermediate data files, with no database required
- Mature and stable: the project has a long history, and many systems offer it as a package in their software repositories
Installation and Deployment
- Install Perl. On many Linux distributions you can install AWStats directly with the package manager, for example
apt install awstats. - Copy the sample configuration file
awstats.model.confand create one configuration per site, for exampleawstats.example.com.conf. Set parameters such as the log path (LogFile), log format (LogFormat) and site domain (SiteDomain). - Run
awstats.pl -config=example.com -updateto update the statistics. This is usually scheduled with cron. - Choose a way to view the reports:
- Configure your web server to run
awstats.plas a CGI and view reports dynamically in the browser - Use
awstats_buildstaticpages.plto generate static HTML reports
- Configure your web server to run
Technical Requirements
- A Perl runtime environment
- Read access to the server log files
- If you view reports via CGI, a web server with CGI support, such as Apache
Things to Note
- Statistics depend on logs, so client-side information such as front-end interactions in single-page applications or screen resolution is difficult or impossible to obtain
- The interface is fairly traditional, and it is less real-time than modern JavaScript-based analytics tools
- When serving reports publicly via CGI, pay attention to access control and security configuration
Discover more
Socioboard
Social media management, analytics, and reporting platform supporting nine social media networks out-of-the-box.
ANALOG
A minimal analytics tool to self-host.
Aptabase
Privacy first and simple analytics for mobile and desktop apps.
Countly Community Edition
Real time mobile and web analytics, crash reporting and push notifications platform.
Daily Stars Explorer
Gain deeper insights into your favourite open-source GitHub repositories. Explore star trends showing daily stats.
Datadog
Cloud observability platform for infrastructure metrics, logs, APM traces, real user monitoring and alerting.