Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add logging for remote options requests

#252

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

Reported by Alex-SF · April 9th, 2011 @ 12:14 PM

State: resolved
Milestone: Rundeck 1.3
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Alex-SF
    Alex-SF
    • Assigned user set to Greg Schueler

    April 9th, 2011 @ 12:50 PM

  2. Greg Schueler
    Greg Schueler

    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 -
    

    April 9th, 2011 @ 03:39 PM

  3. Deleted User
  4. Greg Schueler
    Greg Schueler
    • State changed from new to open

    April 20th, 2011 @ 09:44 AM

  5. Deleted User
    Deleted User
    • Milestone order changed from 19 to 0

    (from [f0664deb5e9acbdfcbc1a6d99fedb94009ca8b14]) Log all remote options http responses [#252 Add logging for remote options requests]

    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...

    May 18th, 2011 @ 10:54 AM

  6. Greg Schueler
    Greg Schueler
    • State changed from open to needs_verification

    June 3rd, 2011 @ 04:32 PM

  7. Alex-SF
    Alex-SF
    • State changed from needs_verification to resolved

    June 8th, 2011 @ 09:31 AM

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.