<< Back to previous view |
![]() |
[QB-1983] Add username accessing RestAPI to log file
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Improvement | Priority: | Major |
Reporter: | Maikel vd Hurk | Assigned To: | Robin Shen |
Resolution: | Won't Fix | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
Add username accessing RestAPI to log file, this makes it easier to detect if someone is overloading server with huge number of RestAPI calls.
|
Comments |
Comment by 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. |