{"id":34079901,"url":"https://github.com/ava007/a9x-webstatistics","last_synced_at":"2026-01-12T08:34:06.028Z","repository":{"id":229137438,"uuid":"775861023","full_name":"ava007/a9x-webstatistics","owner":"ava007","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-14T18:46:25.000Z","size":3104,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T13:11:22.055Z","etag":null,"topics":["webanalytics","webanalyzer","webstatic"],"latest_commit_sha":null,"homepage":"https://www.logikfabrik.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ava007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-22T07:31:05.000Z","updated_at":"2025-09-17T20:30:05.000Z","dependencies_parsed_at":"2024-03-22T08:42:59.983Z","dependency_job_id":"12196eab-6561-4210-9ea1-f9dce47cc05d","html_url":"https://github.com/ava007/a9x-webstatistics","commit_stats":null,"previous_names":["ava007/a9x-webstatistics"],"tags_count":804,"template":false,"template_full_name":"tomchen/example_pypi_package","purl":"pkg:github/ava007/a9x-webstatistics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ava007%2Fa9x-webstatistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ava007%2Fa9x-webstatistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ava007%2Fa9x-webstatistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ava007%2Fa9x-webstatistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ava007","download_url":"https://codeload.github.com/ava007/a9x-webstatistics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ava007%2Fa9x-webstatistics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["webanalytics","webanalyzer","webstatic"],"created_at":"2025-12-14T11:04:17.183Z","updated_at":"2026-01-12T08:34:06.010Z","avatar_url":"https://github.com/ava007.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Statistics and Analytics\n\nThis package produces web statistics and analytical output based on nginx access log files.\n\n[![PyPI package](https://img.shields.io/badge/pip%20install-a9x_webstatistics-brightgreen)](https://pypi.org/project/a9x-webstatistics/) [![version number](https://img.shields.io/pypi/v/a9x_webstatistics?color=green\u0026label=version)](https://github.com/ava007/a9x-webstatistics/releases) [![Actions Status](https://github.com/ava007/a9x-webstatistics/workflows/Test/badge.svg)](https://github.com/ava007/a9x-webstatistics/actions) [![License](https://img.shields.io/badge/license-own-blue)](https://github.com/ava007/a9x-webstatistics/blob/main/LICENSE)\n\n[![Downloads](https://img.shields.io/pypi/dm/a9x-webstatistics)](https://pypistats.org/packages/a9x-webstatistics)\n[![Python](https://img.shields.io/pypi/pyversions/a9x-webstatistics)](https://pypi.org/project/a9x-webstatistics)\n\n## Live Examples\n\nVisit the live examples on [logikfabrik.com](https://www.logikfabrik.com/aboutwebstats.html).\n\n\u003cimg src=\"https://github.com/ava007/a9x-webstatistics/blob/main/a9x_webstats_20250612.png\"\u003e\n\n## Installation\n\n```bash\npip install a9x-webstatistics\n```\n\n\n## Requirements on Linux / Unix\n- access log file from web server\n  - standard access log file from nginx, freenginx or apache\n  - access log file in json format\n- python3.9 onwards\n- optional: maxmind db which need to be download by end user after registration\n\n\n## Deployment on Linux / Unix\n\n```bash\n#!/bin/sh\n\nexport LOG=/usr/local/www/webstats.log\nexport PATH=/usr/local/www/django5/envpy311/bin:$PATH\n\npython3.11 -m a9x_webstatistics.main \\\n   --infile /var/log/nginx-access.log \\\n   --geoip /usr/local/share/GeoIP/GeoLite2-Country.mmdb \\\n   --domain https://www.logikfabrik.com \\\n   --statfile /usr/local/www/lf_static/webstatsLF24.json \u0026\u003e $LOG\n\npython3.11 -m a9x_webstatistics.gencockpit \\\n   --infile /usr/local/www/lf_static/webstatsLF24.json \\\n   --outfile /usr/local/www/lf_static/webstatsLF24.html \u0026\u003e\u003e $LOG\n```\n\nCron-Job Entry for Linux / FreeBSD:\n```bash\n#minute hour    mday    month   wday    who     command\n13,58   *       *       *       *       dj1     /usr/local/www/cronjobs/cron_webstatistics.sh\n\n```\n\n\n## Installation on Windows\n\n```bash\n# install on windows:\n\n## install a virtual env for python\npython -m venv c:\\temp\\webstatsenv\n\n## activate env\nc:\\temp\\webstatsenv\\Scripts\\activate.bat\n\n## install a9x-webstatistics\npip install a9x-webstatistics\npython -m pip install --upgrade pip\npython -m pip list\n```\n\n## Deployment on Windows\n\n```bash\n# run\nc:\ncd \\temp\nwget -URI https://www.logikfabrik.com/wlog/access.log -OutFile access.log\n\n## active env\nc:\\temp\\webstatsenv\\Scripts\\activate.bat\n\n## create calculate statistics\n## there are no country statistics created as not geoip defined\npython -m a9x_webstatistics.main --infile access.log --statfile webstatsLF.json\n\n## create html file for webstatistics\npython -m a9x_webstatistics.gencockpit --infile webstatsLF.json --outfile webstatsLF.html\n```\n\n## Extended Example\n\n```bash\n#!/bin/sh\n\nexport LOG=/usr/local/www/webstats.log\nexport PATH=/usr/local/www/django5/envpy311/bin:$PATH\n\n_YEARNUM=\"$(date +'%Y')\";\n_MONTHNUM=\"$(date +'%m')\";\n\n# make a archive copy for every month:\ncp /usr/local/www/lf_static/webstatsLF24.json /usr/local/www/lf_static/webstatsLF24$_YEARNUM$_MONTHNUM.json\ncp /usr/local/www/lf_static/webstatsLF24.html /usr/local/www/lf_static/webstatsLF24$_YEARNUM$_MONTHNUM.html\n\n# updates all packages:\npip install -U `pip list --outdated | awk 'NR \u003e 2 {print $1}'` \u003e\u003e $LOG\n\n\npython3.11 -m a9x_webstatistics.main \\\n   --infile /var/log/nginx-access.log \\\n   --geoip /usr/local/share/GeoIP/GeoLite2-Country.mmdb \\\n   --domain https://www.logikfabrik.com \\\n   --statfile /usr/local/www/lf_static/webstatsLF24.json \u0026\u003e $LOG\n\npython3.11 -m a9x_webstatistics.gencockpit \\\n   --infile /usr/local/www/lf_static/webstatsLF24.json \\\n   --outfile /usr/local/www/lf_static/webstatsLF24.html \u0026\u003e\u003e $LOG\n```\n# Supported Access Log Formats\n\n\n\n## Nginx Combined Format\n\npredefined combined format:    access_log /.../logs/nginx-access.log combined;\n\n\n## Nginx Json Format\n\n```bash\nlog_format a9x_logs escape=json '{'\n  '\"tl\":\"$time_local\",'\n  '\"ip\":\"$remote_addr\",'                 # must; client IP\n  '\"rq\":\"$request_uri\",'                 # must; full original request URI (with arguments)\n  '\"qs\":\"$query_string\",'                # optional\n  '\"st\":\"$status\",'                      # must; response status code\n  '\"ru\":\"$remote_user\",'                 # optional; client HTTP username\n  '\"bs\":\"$bytes_sent\", '                 # must; the number of bytes sent to a client\n  '\"rf\":\"$http_referer\",'                # optional;\n  '\"rt\":\"$upstream_response_time\", '     # optional; time spend receiving upstream body\n  '\"sc\":\"$scheme\", '                     # optional; http or https\n  '\"ua\":\"$http_user_agent\",'             # optional\n  '\"cs\":\"$upstream_cache_status\",'       # optional\n  '\"al\":\"$http_accept_language\",'        # optional\n'}';\n\naccess_log     /.../log/nginx-access-log.json a9x_logs buffer=1k;\n```\n\n## Apache Combined Format\n\n\nCustomLog /.../log/apache2/apache_access.log combined\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fava007%2Fa9x-webstatistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fava007%2Fa9x-webstatistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fava007%2Fa9x-webstatistics/lists"}