[OSM-dev] apache log to tile usage graph

Jon Burgess jburgess777 at googlemail.com
Sun Nov 15 11:09:39 GMT 2009


On Sun, 2009-11-15 at 02:26 +0100, Frederik Ramm wrote:
> Hi,
> 
>     for the .de tile server I'd like to set up something that makes a 
> nice, map-based display of what tiles are requested from the server how 
> often - a kind of tile access heat map. Does anyone have a ready script 
> for that, or at least script fragments that I could duct-tape into 
> something usable?

I used a perl script to extract all the x/y/z from the Apache logs. It
counts the total number of requests for each X/Y for a given Z and
outputs these into a text file (zoom.dat). I then used gnuplot to turn
this into a coloured PNG like this one:

http://tile.openstreetmap.org/plot.png

The perl script for exacting the stats:
http://tile.openstreetmap.org/tilecounter3.pl

The Gnuplot script:
http://tile.openstreetmap.org/plot2.txt


	Jon






More information about the dev mailing list