History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1983
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Maikel vd Hurk
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Add username accessing RestAPI to log file

Created: 17/Mar/14 09:51 AM   Updated: 17/Mar/14 11:18 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Add username accessing RestAPI to log file, this makes it easier to detect if someone is overloading server with huge number of RestAPI calls.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [17/Mar/14 11:18 PM]
Under directory "<QB install dir>/conf" there should exist a file "jetty.xml", please edit this file to uncomment below lines:
<Ref id="Handlers">

<Call name="addHandler">
<Arg>
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
<Set name="requestLog">
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
<Set name="filename">../logs/yyyy_mm_dd.request.log</Set>
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
<Set name="retainDays">30</Set>
<Set name="append">true</Set>
</New>
</Set>
</New>
</Arg>
</Call>
</Ref>

Then QB will create http request log to display user name for each web request including the RESTful calls. Unfortunately this requires QB server to be restarted to take the modification in effect.

Change by Robin Shen [17/Mar/14 11:18 PM]
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]