GeoChk

GeoChk is a command-line tool using GeoIP to parse Apache logs. Reads from standard input.

Download

GeoChk 1.0 (4kb) — 10 January 2010

Installation

GeoChk requires no special installation, but geochk.py should typically be copied into /usr/local/bin or somewhere else in your PATH.

GeoChk requires:

Usage

$ geochk.py < access_log
IL  Mchenry 1
NY  Brooklyn    1
CA  Santa Ana   3
[...]

GeoIP Data Files

I highly recommend GeoLiteCity (download).

By default, GeoChk looks for a file at /usr/local/share/GeoIP/GeoLiteCity.dat. If you install the file elsewhere, or choose a different MaxMind distribution, you must change this.

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit