Skip to content

A Python 3 script to parse basic page and locale analytics from nginx access logs

License

Notifications You must be signed in to change notification settings

mouhtasi/basic_site_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

What

A Python script to read nginx access logs and offer a basic summary on popular cities, countries, and pages.

Why

I'd like to avoid client-side scripts and trackers. Parsing the nginx logs gives enough information on popular pages and locales.

How

Dependencies:
geoip2: https://github.com/maxmind/GeoIP2-python/
The geoip city database: https://dev.maxmind.com/geoip/geoip2/geolite2/

Configuration:
access_file_path: The path to the nginx access log you want to parse
geoip_file_path: The path to the Geoip mmdb file
time_period_days: The time period in days you'd like to parse data for

License

MIT

About

A Python 3 script to parse basic page and locale analytics from nginx access logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages