From a3ac68bb12c15a586115074281ab83e3a0dfcbee Mon Sep 17 00:00:00 2001 From: "Jason Smith (work)" Date: Mon, 11 Feb 2013 05:41:28 +0000 Subject: Document /_log/query_server --- share/doc/src/api/misc.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/share/doc/src/api/misc.rst b/share/doc/src/api/misc.rst index f9562ae90..7657a0be3 100644 --- a/share/doc/src/api/misc.rst +++ b/share/doc/src/api/misc.rst @@ -35,6 +35,8 @@ A list of the available methods and URL paths are provided below: +--------+-------------------------+-------------------------------------------+ | GET | /_log | Return the server log file | +--------+-------------------------+-------------------------------------------+ +| GET | /_log/query_server | Return the query server log file | ++--------+-------------------------+-------------------------------------------+ | POST | /_replicate | Set or cancel replication | +--------+-------------------------+-------------------------------------------+ | POST | /_restart | Restart the server | @@ -217,6 +219,15 @@ following request: Reading of the log will start at 2000 bytes from the end of the log, and 500 bytes will be shown. +If you have configured a ``query_server_file`` in the ``log`` section, +then you can fetch the query server log file by appending ``/query_server`` +to the URL. This request supports the same options as ``/_log``. + +.. code-block:: http + + GET http://couchdb:5984/_log/query_server?bytes=500&offset=2000 + Accept: */* + .. _replicate: ``POST /_replicate`` -- cgit v1.2.1