diff options
author | Jason Smith (work) <jhs@iriscouch.com> | 2013-02-11 05:41:28 +0000 |
---|---|---|
committer | Jason Smith (work) <jhs@iriscouch.com> | 2013-02-11 05:41:28 +0000 |
commit | a3ac68bb12c15a586115074281ab83e3a0dfcbee (patch) | |
tree | 33eac3704ac632a8773a2686cff7e4b93283dbb4 | |
parent | f012f23fe456f8b3ecc7f4746da2d7bc230125d4 (diff) | |
download | couchdb-1677-feature-query_server_log_file.tar.gz |
Document /_log/query_server1677-feature-query_server_log_file
-rw-r--r-- | share/doc/src/api/misc.rst | 11 |
1 files changed, 11 insertions, 0 deletions
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`` |