Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-26314

Outbound Request Logging

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 3.29.2
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
    • Notability:
      n/a

      Description

      Outbound networking problems are a common source of customer support tickets.  In order to debug these we have to have the customer enable DEBUG logging (either "org.sonatype.nexus.httpclient.outbound" or "org.apache.http"). Then they need to reproduce the problem, and then get us a support zip file. And finally reset loggers back to default levels.

      This causes unnecessary delay in resolving support tickets.  And in some cases the problems are intermittent or not reproducible.

      Given the frequency this information is needed it would be a tremendous benefit to the support team and our customers if we had an out of the box logger for outbound requests.  

      I'd like to see this in a separate log file with name "outbound-request.log". It should rotate daily. We should keep 90 days of old logs files by default, and compress old logs (the same as our other logs).

      Proposed format:

      [date] [time-with-offset] [user] "[method] [url]" [response] [bytes-sent] [bytes-received] [time-milliseconds] [thread-id]
      

       Example line with proposed format:

      2021-01-07 12:19:54,801-0600 someuser "GET https://repo1.maven.org/maven2/ant/ant/maven-metadata.xml HTTP/1.1" 200 - 8913 101  [qtp2143716248-60]
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title