Web Statistics and Analytics Package
Project description
Web Statistics and Analytics
This package produces web statistics and analytical output based on nginx access log files.
Live Example
Visit the live example on logikfabrik.com.
Installation
pip install a9x-webstatistics
Requirements
- nginx standard access log file
- python3.9 onwards
- optional: maxmind db which need to be download by end user after registration
Deployment
#!/bin/sh
export LOG=/usr/local/www/webstats.log
export PATH=/usr/local/www/django5/envpy311/bin:$PATH
python3.11 -m a9x_webstatistics.main \
--infile /var/log/nginx-access.log \
--geoip /usr/local/share/GeoIP/GeoLite2-Country.mmdb \
--statfile /usr/local/www/lf_static/webstatsLF24.json &> $LOG
python3.11 -m a9x_webstatistics.gencockpit \
--infile /usr/local/www/lf_static/webstatsLF24.json \
--outfile /usr/local/www/lf_static/webstatsLF24.html &>> $LOG
Cron-Job Entry for Linux / FreeBSD:
#minute hour mday month wday who command
13,58 * * * * dj1 /usr/local/www/cronjobs/cron_webstatistics.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
a9x_webstatistics-0.7.33.tar.gz
(19.5 kB
view hashes)
Built Distribution
Close
Hashes for a9x_webstatistics-0.7.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad5e7c5c78be5d66904107199acc3ed644fe7bcad5f8a5aa252578adcdd734e |
|
MD5 | 84efa333681f5338c36dc89edc704be7 |
|
BLAKE2b-256 | 1247739ba555a5a9b53361eb6f75078b651e690bd622acf2527e532cc8f72fc2 |