Skip to content
Analyse your NGINX access logs and create beautiful maps of the locations from which people access your service.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cleanData adding folders Apr 5, 2019
map better code readability Apr 6, 2019
rawData better code readability Apr 6, 2019
Logation.py more readabilty Apr 6, 2019
README.md
requirements.txt stable release Apr 5, 2019

README.md

Logation [NGINX]

Analyse your NGINX access logs and create beautiful maps of the locations from which people access your service.

result


Build Status

How to use

First of all, make sure you have python3.x and geolite2 installed. The later can be installed via pip with pip install maxminddb-geolite2 python-geoip-geolite2.

Then simply clone this repository, put a copy of your NGINX access.log in the ./rawData/ folder and run Logation.py.

The map can then be found at ./map/map.html.

The ./cleanData/ folder contains the .json and .txt files with the geolocations of all unique ips and some other statistics (like what OS has been used etc.).

On an ordinary laptop 100mb of access.log size takes about 30s to analyse.

You can’t perform that action at this time.