Differences between revisions 6 and 7
Revision 6 as of 2011-11-23 15:02:49
Size: 1024
Editor: 62
Comment: add ContributorGroup link
Revision 7 as of 2018-04-13 05:40:54
Size: 0
Editor: JoanTouzet
Comment: migrated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<Include(EditTheWiki)>>

= HTTP GET _log =

||'''Method'''||<-2>GET||
||'''Path'''||<-2>/_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'''||<-2>None||
||'''Response body'''||<-2>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

}}}