You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jh...@apache.org on 2013/02/11 06:43:17 UTC
[8/8] git commit: Document /_log/query_server
Updated Branches:
refs/heads/1677-feature-query_server_log_file [created] a3ac68bb1
Document /_log/query_server
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/a3ac68bb
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/a3ac68bb
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/a3ac68bb
Branch: refs/heads/1677-feature-query_server_log_file
Commit: a3ac68bb12c15a586115074281ab83e3a0dfcbee
Parents: f012f23
Author: Jason Smith (work) <jh...@iriscouch.com>
Authored: Mon Feb 11 05:41:28 2013 +0000
Committer: Jason Smith (work) <jh...@iriscouch.com>
Committed: Mon Feb 11 05:41:28 2013 +0000
----------------------------------------------------------------------
share/doc/src/api/misc.rst | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/a3ac68bb/share/doc/src/api/misc.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/api/misc.rst b/share/doc/src/api/misc.rst
index f9562ae..7657a0b 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``