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

Remove RequestLogger Filter and TimerFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Core UI, Security
    • None

    Description

      With the introduction of standardized HTTP Request Logging in NIFI-9291, the custom RequestLogger and TimerFilter classes should be removed.

      The RequestLogger filter logs informational messages for unencrypted HTTP access attempts. With the default NiFi configuration enabling HTTPS, this use case is no longer common, and HTTP Request Logging in nifi-request.log can provide the same information plus additional request details.

      The TimerFilter runs for every HTTP request and writes debug log messages that include millisecond timing information as well as the contents of X-RequestTransactionId and X-Request-Replicated HTTP headers. This debug logging is not enabled in the default Logback configuration. The same header and request timing information can be captured using a custom nifi.web.request.log.format with the following message format:

      %{X-RequestTransactionId}i %{X-Request-Replicated}i %T 
      

      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