Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9291

Add Configurable HTTP Access Logging

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Core Framework, Security
    • None

    Description

      The NiFi REST API includes a RequestLogger implemented as a Java Servlet Filter which logs requests using the following format:

      Attempting request for (<IDENTITY>) <METHOD> <URL> (source ip: <REMOTE_IP>)
      

      The RequestLogger writes this message prior to request completion, so it is does not include HTTP response status information.

      The identity field may not include username information when authenticating using a JWT. Additional information, such as User Agent and negotiated TLS version could also provide useful details.

      HTTP request logging should be improved to include additional details and output information in a standardized format.

      The W3C Extended Log File Format provides one potential option for access logging. The Common Log Format and Combined Log Format also provide de facto standards for access logging, while omitting some fields.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m