Add logging for remote options requests
Reported by Alex-SF | April 9th, 2011 @ 12:14 PM | in Rundeck 1.3 (closed)
Create a new log category and associated log file (eg, options.log) to capture request/response metrics to remote options providers. Data to include:
- timestamp: When the request was made
- status: the HTTP response code
- bytes: Number of bytes in response
- duration: How long the request/response took
- last-modified: Last modification date
- checksum: Checksum of content
- job: The job name
- valuesUrl: The URL to the remote option provider
This is needed for both versions 1.2 (eg, 1.2.1) and 1.3
Comments and changes to this ticket
-
Alex-SF April 9th, 2011 @ 12:50 PM
- Assigned user set to Greg Schueler
-
Greg Schueler April 9th, 2011 @ 03:39 PM
proposed log4j format:
[%d{ISO8601}] %X{httpStatusCode} %X{contentLength}B %X{durationTime}ms %X{lastModifiedDateTime} [%X{jobName}] %X{url} %X{contentSHA1}%n
Example lines:
[2011-04-09 15:27:31,242] 200 64B 70ms - [/option test 1] http://localhost:4440/test/option?z=zah 60f991ff5b5cb902b15711cba1e14a3411c84f2c [2011-04-09 15:34:58,599] 404 1379B 32ms - [/option test 2] http://localhost:4440/test/option404?zzzd - [2011-04-09 15:34:58,668] 200 24B 75ms - [/option test 2] http://localhost:4440/test/optionInvalid?z=zah 64282cc729007a062f9a852bd57aa5b391c249eb [2011-04-09 15:37:48,553] 200 24B 1ms 1302388589000 [a group/option test 3] http://localhost/~greg/test2.json 7d0340548b0744361f991a04d60c1fdc2794ce45 [2011-04-09 15:37:49,045] 200 123B 500ms 1302388588000 [a group/option test 3] http://localhost/~greg/test.json 9f40f0b50db925fbc5e34ef0f9a81bdbc18db9d8 [2011-04-09 15:37:50,029] 404 216B 1485ms - [a group/option test 3] http://localhost/~greg/test404.json -
-
Deleted User April 19th, 2011 @ 06:50 PM
(from [8bf0a3572eb97ad6b04048fd6bb26eab6b011df5]) Merge options req log for 1.3 [#252] https://github.com/dtolabs/rundeck/commit/8bf0a3572eb97ad6b04048fd6...
-
Greg Schueler April 20th, 2011 @ 09:44 AM
- State changed from new to open
-
Deleted User May 18th, 2011 @ 10:54 AM
- Milestone order changed from 19 to 0
(from [f0664deb5e9acbdfcbc1a6d99fedb94009ca8b14]) Log all remote options http responses [#252]
Update loadRemoteOptionValues/getRemoteJSON to log all http responses with MDC context data
Add log4j config for new rundeck.options.log file to store content in specific
format
https://github.com/dtolabs/rundeck/commit/f0664deb5e9acbdfcbc1a6d99... -
Greg Schueler June 3rd, 2011 @ 04:32 PM
- State changed from open to needs_verification
-
Alex-SF June 8th, 2011 @ 09:31 AM
- State changed from needs_verification to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Referenced by
- 252 Add logging for remote options requests (from [8bf0a3572eb97ad6b04048fd6bb26eab6b011df5]) Merge o...
- 290 Add logging for remote options requests See http://rundeck.lighthouseapp.com/projects/59277/tick...
- 252 Add logging for remote options requests (from [f0664deb5e9acbdfcbc1a6d99fedb94009ca8b14]) Log all...