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

Support for JSON encoder in logback

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None

      Description

      We are running nexus repo manager in Kubernetes. Currently, it's printing logs on stdout as plain text which makes it difficult for log collectors like Fluentd, Logstash, etc. to properly parse them. 

       

      Since there already is an option to modify logback configuration. Our feature request is to add a JSON encoder like LogstashEncoder in the project dependencies so that we can leverage on that. 

      Although I was pointed to  audit.log  file which has logs in JSON format, we cannot leverage on log files because that will be an anti-pattern. Since all the logs that our log collectors will collect should come straight out of stdout and no external sources.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ahmedwaleedmalik Waleed Malik
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title