You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Obsolete:Api/UDP Logger

From Wikitech-static
Jump to navigation Jump to search

As of r55632 we're ready to run a UDP logger on locke.wikimedia.org to capture the usage of various client of our api.

The udp logger shares the same code and usage as Search/UDP Logger.

Startup/Shutdown

Scripts live in

/usr/local/udplogger

Run

./startlogger

or

./stoplogger

The written log file is apiqueries.

Configuration

Set $wmgUseAPIRequestLog to true in InitialiseSettings.php

Format

Here is an example querry

20090827165008,0.111815929413,127.0.0.1,action=query&meta=userinfo&uiprop=groups%7Crights

CSV has the following value

  • Request Time
  • Request Length
  • Host Requesting
  • Query