Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8274

Add per-request MDC logging based on user-provided value.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • logging
    • None

    Description

      Problem 1 Currently, there's no way (AFAIK) to find all log messages associated with a particular request.

      Problem 2 There's also no easy way for multi-tenant Solr setups to find all log messages associated with a particular customer/tenant.

      Both of these problems would be more manageable if Solr could be configured to record an MDC tag based on a header, or some other user provided value.

      This would allow admins to group together logs about a single request. If the same header value is repeated multiple times this functionality could also be used to group together arbitrary requests, such as those that come from a particular user, etc.

      Attachments

        1. SOLR-8274.patch
          6 kB
          Jason Gerlowski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gerlowskija Jason Gerlowski
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: