The official documentation has moved to http://docs.couchdb.org — The transition is not 100% complete, but http://docs.couchdb.org should be seen as having the latest info. In some cases, the wiki still has some more or older info on certain topics inside CouchDB.

You need to be added to the ContributorsGroup to edit the wiki. But don't worry! Just email any Mailing List or grab us on IRC and let us know your user name.

HTTP GET _log

Method

GET

Path

/_log

Query args

bytes=n

How many bytes to return from the tail of the log file(optional, default 1000)

offset=n

How many bytes to offset the returned tail of the log file (optional, default 0)

Request body

None

Response body

Text from the couchdb log file

Description

Returns the tail of the server's log file. The bytes argument controls how many bytes to return from the end of the log file. As of 1.0.1, the offset argument is broken and does nothing useful. Also, since the log file is constantly appended to, the offset argument is not useful in attempting to iterate through the entire log file in chunks.

This method requires server admin privileges.

Example

GET /_log HTTP/1.1

HTTP/1.1 200 OK

[Tue, 14 Sep 2010 00:28:28 GMT] [info] [<0.20318.14>] 127.0.0.1 - - 'GET' /_log 200

HttpGetLog (last edited 2011-11-23 15:02:49 by JanLehnardt)