Hi, Manoj: I don't know of any function to access the logs other than xdmp:filesystem-file() followed by fn:analyze-string().
You might want to consider parsing the log file outside of MarkLogic. I notice but haven't used the following tool, which might or might not help: http://code.google.com/p/otroslogviewer/ Erik Hennum ________________________________ From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] on behalf of manoj viswanadha [manoj.viswana...@gmail.com] Sent: Friday, September 06, 2013 2:42 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to check the logs on Rest API Instance(Marklogic) 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<mailto: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<mailto:general-boun...@developer.marklogic.com> [general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>] on behalf of manoj viswanadha [manoj.viswana...@gmail.com<mailto: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<mailto: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