This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to get statistics from a Nominatim installation?

0

Hi, What is the easiest way to get statistics from a Nominatim server? What I need is some statistics on number of successful/failed requests in a web page similar to mod_tile (http://hostname/mod_tile).

asked 27 Apr '16, 10:22

khamooshi's gravatar image

khamooshi
146111219
accept rate: 50%


One Answer:

2

The Munin graph plugins https://github.com/twain47/Nominatim/tree/master/munin query the Nominatim database every 5 minutes. The new_query_logs table also has a column results (integer) which you can use to find those that didn't return results. This shows you how to query, you'll still need to create a page (.php file).

answered 27 Apr '16, 13:36

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

The table new_query_log is empty on our servers. Is there a config file for logging requests?

(03 Aug '18, 13:05) khamooshi
1

@khamooshi You can see those config values in build/settings/settings.php and overwrite them in build/settings/local.php One is for logging into the database (new_query_log table), another setting is for logging into a file on disk.

(06 Aug '18, 11:10) mtmail

Source code available on GitHub .