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: [email protected] 
[[email protected]] on behalf of manoj viswanadha 
[[email protected]]
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
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to