Hi Erik,

Thanks for the information. Is there any function available in marklogic
where we can access the log files
directly so that it will be easy to use the function and get the logs?

Thanks,
Manoj,


On Wed, Sep 4, 2013 at 9:35 PM, Erik Hennum <erik.hen...@marklogic.com>wrote:

>  Hi, Manoj:
>
> In the Logs subdirectory of the data directory for the enode, there is an
> PORTNUMBER_AccessLog.txt file for each server including REST servers.  That
> gets you partway to your goal, in that it logs the access time, user, and
> URI.
>
> Getting the complete time required to process a request is difficult
> because there are many layers (some in C++ and some in XQuery) including
> the HTTP server, rewriter, request and response processing, and database
> query and document access.
>
> Depending on your goals, you might want to log the elapsed time for
> requests in a REST client running on the same server as the enode.  That
> will give you a realistic picture of the roundtrip request (excluding
> network cost).
>
>
>  Erik Hennum
>
>   ------------------------------
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of manoj viswanadha [
> manoj.viswana...@gmail.com]
> *Sent:* Wednesday, September 04, 2013 6:10 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] How to check the logs on Rest API
> Instance(Marklogic)
>
>   Hi all,
>
>  Can anyone help me out how we can check the logs on Rest API instance on
> Marklogic.
>
>  I want to create my own log file for REST API into the database. So i
> want to capture each and every request made on rest API and the
> response-time of that particular request.
>
>  Is there any way to do as above.
>
>  Thanks in advance,
> Manoj,
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to